-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotoColorEmoji.ttf not a valid font in Windows #43
Comments
There are 3 formats for color fonts being standardized; 1. Google's proposal as used in Noto Color Emoji among other fonts 2. Microsoft's proposal 3. SVG-based format (mainly proposed by Mozilla and Adobe). There's also a proprietary format used by Apple on Mac OS/iOS. Windows currently supports one of them (quite naturally, it's what MS proposed) and does not support a format used in Noto Color Emoji, yet. |
Can you comment on why there's no mention of this? No where does it say "this doesn't work on windows" 😃 |
@jungshik The standardization process completed 1/27/16 and the forth option was selected: https://www.w3.org/community/svgopentype/2016/01/27/opentype-spec-adopts-svg-in-opentype-proposal/ |
No. That post was created recently to point people away from the working group's draft. In reality, the standardization process concluded in 2014, and all three of Microsoft's, Google's, and Adobe+Mozilla+W3C's proposals became part of OpenType and ISO version. Indeed, you can see all of COLR+CPAL, SVG+CPAL, and CBLC+CBDT both on Microsoft's OpenType spec website as well as latest version of ISO OFF if you can get your hands on it. https://www.microsoft.com/typography/otspec/otff.htm#otttables |
Ah ha! Thanks for the correction and details. :) |
Why three? Is there no single format to rule them all? |
The rule-all option is SVG, which is cumbersome to implement. So the other two were accepted as much lighter ways to address existing needs: color bitmaps, and color layers. |
Is there any solution to using the front on Windows yet? |
@LinkofHyrule89 Since the above conversation, I've made emoji fonts which work in Windows. https://github.com/eosrei/emojione-color-font#install-on-windows V1.3 and older shows color in Firefox only. V1.4+(when I release it) shows color on Windows 10 Edge V38.14393+ also. Sorry, not this graphic set because of #30. You can test your browser's color font support here: https://pixelambacht.nl/chromacheck/ |
@eosrei after they fix #30 will you port noto-emoji to work on Windows? Also, the current version of Chrome on Windows doesn't natively support Emoji yet? Do you know if they are working on this problem? EDIT: After updating to the latest Chrome Dev this is what I see on http://eosrei.github.io/emojione-color-font/full-demo.html Your test page however claims Chrome doesn't support any of the open standards. EDIT2: After installing your font it shows the black and white emoji and not the color ones. So I guess Chrome now supports the Windows style emoji which is ironic considering Google makes it. |
@LinkofHyrule89 the official font works as-is in Microsoft Edge, if you're running Windows 10 with the Anniversary Update. |
I would have done it originally, but it wasn't an option. Now, the current CBDT/CBLC version works since Edge supports everything. I'd probably do it in SVGinOT anyway though if the SVGs were available.
Chrome supports COLR/CPAL @RoelN bug report on https://pixelambacht.nl/chromacheck/ is this RoelN/ChromaCheck#8 ? Edit: It's only Linux. |
Oh also, per @miguelsousa This issue can be closed. |
Chrome on Windows doesn't support any color format yet — only the Android version supports CBDT. The CBDT test in ChromaCheck has been fixed a couple of weeks ago, so it should report properly: RoelN/ChromaCheck@c6889d6 |
Chrome does support the Microsoft color emoji format in the latest Chrome Dev because how else would it be displaying those? I did find this it says fixed. https://bugs.chromium.org/p/chromium/issues/detail?id=333011 @miguelsousa but how did you install the font on Windows and run it in edge? |
Ah yes, it is displaying color emoji in Window's own emoji font, Segoe UI. I checked in Dev and indeed COLR fonts work, but ChromaCheck says it doesn't. I'll look at this during lunch, will report back. |
@RoelN much appreciated is like to get to the bottom of all this. I'm hoping to switch the default font with the noto some day but at least we can know what font format Chrome Dev actually supports 😀 |
The COLR test of ChromaCheck in Chrome Dev 53 and 54 on Windows 10 failed because the font had a non-empty (no outline data) fallback glyph. I don't know why it fails on that, but I think it's a bug. I fixed this by simply using a non-empty glyph as the fallback glyph in ChromaCheck: RoelN/ChromaCheck#31. The CBDT font simply won't render so I suppose this is just not implemented in Chrome on Windows. @eosrei Could the empty glyph thing be the case for the emoji in the COLR font? Or do you have singlecolor fallback emoji in there? |
@RoelN Yes. Segoe UI Emoji/Symbol and my SVGinOT fonts (EmojiOne Color & Twitter Color Emoji) have fallback TrueType glyphs. Noto Color Emoji and Apple Color Emoji do not. SVGinOT was only supported in Firefox/Gecko when I made these fonts, so I created TTF glyphs to make the fonts work everywhere. Also, fallback CFF/TT glyphs are needed for text vs emoji variation selectors VS15/VS16 (which I haven't dealt with yet.) |
@LinkofHyrule89 I didn't install the font. The webpage loads it via @font-face |
Chrome on WIndows and Mac does not support CBDT-based color fonts (, yet). Chrome needs to bundle a subset of FreeType to support that. It has been talked about, but no movement so far. |
@miguelsousa is there a way to use CSS to use the @font-face to use the font on all web pages instead of Segoe? |
When I try to open NotoColorEmoji.ttf with FontForge, it gives this error:
Followed by:
That may or may not help. :P |
In case it helps anyone: Microsoft's DirectWrite Programming Guide: Color fonts says SVG-based color fonts are supported by DirectWrite/Direct2D as of Win10 Anniversary Edition. They claim to support only a subset of SVG, though. |
I think this font shouldn’t be limited by specific font technology. |
Any word about this? I keep reading that the new anniversary update (1703) should work, but I don't know how to start. Installing via |
Try putting it in the |
The test results from @fdwr's tool Some points I found:
|
Hi, i saw this in 2020 is there any hope of getting support for noto emojis format? Im back to the "Not supported" error |
As there's no black and white design for Noto Emoji, I think this won't be possible to fix technically; it would require design work.
That seems like something we can fix technically. @RoelN does that description give you enough to go on to fix it? |
You could use the old black and white font, if it's acceptable that it's missing everything from the past several years. https://github.com/googlefonts/noto-emoji/blob/master/fonts/NotoEmoji-Regular.ttf (Source code for the B/W font) That would mean there would be a Not sure if this is a good idea, just posting it as an idea. |
We can add the Downside of that approach is that the font will fail silently (in the eyes of the user) in a situation where CBDT/CBLC isn't supported, as it will show blank Edit: the reason the Assigned this task to me. @DeeDeeG Drafts of the CBDT/CBLC spec indeed proposed the |
Adding a All this adds ~10KB to the font, which sounds reasonable on a ~10MB file. The manually built font can be found here, if any Windows users want to test it out in other software. Regarding testing in TextLayoutSampler, only "D2D DrawTextLayout" always renders the color glyphs properly. I tried various combinations of If this version meets the requirement "works in Windows", I can submit a PR where the build process adds (Note that the current Noto Color Emoji version works in all versions of Edge. This test was specifically for Noto Color Emoji as installed "system font".) |
FWIW This issue is why I went through the hassle of creating a method to generate B&W glyphs for |
@RoelN : Yeah, that is expected, as...
|
@fdwr I have a PR with a proper build, if you want to test with that! |
Could you please tell me how to set the windows compatible emojis as system default? |
@joshua-612 I don't know, but perhaps you can find instructions elsewhere, e.g. https://superuser.com/questions/1062418/how-do-i-replace-windows-10s-emoji? |
@RoelN : Cool (sorry for very late response - a sea of notifications 😅). Yep, testing your font, I'm able to install it fine. The emoji are fully rendered via D2D, blanks for DirectWrite (because I don't read PNG glyphs in TextLayoutSampler), emptiness for GDI (alas, it is highly unlikely GDI will ever read PNG glyphs), and an error for GDI+ (don't know what GDI+'s deal is). I wish there was a way to appease the installer so you can install the font, while still getting font fallback to Segoe UI Emoji for the unsupported PNG glyphs, but I don't think there is a way to satisfy both requirements. |
I tried that build but it changes nothing. The best you can have is to change font to NotoEmoji. |
@RoelN I would like to use this font as default on Windows, so I needed to change the font name to |
I think it might work if we use this: https://github.com/eosrei/twemoji-color-font#replace-the-default-windows-emoji-fonts And edit: And replace the Twemoji font with Noto Color Emoji. |
Should we make |
Include the Noto Color Emoji font in the package and use it to render emojis. This resolves the missing emojis on Android, and ensures they will render properly on Linux systems without the font or an old version. Windows does not appear to support Noto Color Emoji, so the emojis will still appear differently on Windows. See: googlefonts/noto-emoji#43 In addition, the native Windows font only supports Unicode 14.0 emojis, so newer emojis are not shown on Windows.
I've tried installing NotoColorEmoji.ttf in Windows 10 and it is not a valid font to install. From https://www.google.com/get/noto/ I've downloaded and extracted the font from both the individual font .zip and the complete Noto .zip file without success. An online font converter failed to convert it to a .ttf or an .otf for testing as well.
Windows 10 Build 10586.104
The text was updated successfully, but these errors were encountered: