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
Noto Color Emoji broken on Chrome #588
Comments
Can you confirm this is an issue with the NPM package? Technically if it is related to the font itself, that's probably an upstream issue. If it's related to the packaging of the font and its files, then we could dig more into it. The first thing that pops into my mind is that this may be a user-agent problem. Google determines what files to serve depending on the user agent and perhaps the new COLRv1 features require a newer user agent. But I would expect a working fallback regardless... |
@ayuhito COLRv1 was created by Google themselves, the annoying bit is that building Noto Emoji takes a few hours (I'm even building a COLRv1+SVG version as I type this). Fortunately the compression is very quick. |
Is there any way to solve this? Seems strange that a Google font wouldn't work in Chrome. |
If there is a user-agent that fetches both tables in one file from GF, that would be a viable solution for this until all browsers support COLRv1 or SVGs. The only trade-off is file sizes I'm assuming. |
Can you clarify which font is broken on Chrome exactly? - https://fonts.google.com/noto/specimen/Noto+Color+Emoji is working fine for me. Note that the Google Fonts css api will pick what color format to send based on the user agent's capabilities. You should get a COLRv1 font on modern Chrome, SVG on Safari, etc. |
@rsheeter Apologies, this is about the fontsource package, not the one offered through the GF API. |
Oh I'm sorry, I completely missed what repo we're in and assumed it was in Noto Emoji :) The copy in https://github.com/google/fonts/tree/main/ofl/notocoloremoji (upstream of Google Fonts) should have both SVG and COLR. |
@rsheeter, is there a possibility we can acquire a user-agent that covers both tables? Possibly a fallback that occurs when the CSS API can't determine exactly what browser it might be? We fetch fonts from the CSS API directly using these user agents. Thanks! |
Should be resolvable when #39's subsetter is implemented. |
It does not appear to be working here either. https://fontsource.org/fonts/noto-color-emoji |
I have been troubled by the color emojis not working in Chromium (but does in Firefox) too. When the What I am trying to do is having a small page with emojis showing Noto Color Emojis, since I want all kinds of devices to have the same experience (instead of Samsung phones and Apple phones showing different emojis). |
Describe the bug
EDIT: I've checked the .woff2 files being served using the Wakamai Fondue beta and confirmed that the font files only have an SVG table (OpenType-SVG), which only works on Safari/WebKit based browsers and Firefox (caniuse.com). Chrome has chosen not to implement OpenType-SVG in favour of COLRv1, and it's being supported by all major browsers at the moment except Safari, they had a negative stance on the proposal. See caniuse.com. So I think that the font should also be built with OpenType-SVG, until WebKit decides to implement COLRv1 into their system.
Steps to Reproduce
Expected behavior
I expected the glyphs to be visible but they were not.
Version
4.5.2
OS
MacOS
Browser
Google Chrome
Additional context
This will also impact Edge and Opera users.
The text was updated successfully, but these errors were encountered: