-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove emoji fonts from font-family #1204
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-css/gmhfvsv2a |
Since the font stack would end up being |
I didn't realize that Windows doesn't have Helvetica 🤔 Here's how the changes look (this includes the internal g-emoji change). I loaded up https://github.com/ikatyang/emoji-cheat-sheet running Windows 10/Edge 87 through Browserstack to get these screenshots.
I'm not sure what we can do here if we want to keep the "Segoe UI" font since the keycap emojis are broken on it |
Hmm.. me neither. 🤔 If having |
Yes! I'd love a second pair of eyes on this in case I'm making assumptions that don't hold up to scrutiny. I didn't find any good documentation around this. I did quickly reproduce this on codepen so I'm wondering how other websites handle this. My guess is that we use emojis much more than other websites and include them in our UI to a much greater extent than others. Or that they just don't use Excited to see if you find something out. |
Ok, I can reproduce this in Chrome on Windows 10 too: Removing Interestingly it works fine in Firefox. In the screenshot below I reduced the font stack to just But I guess Chrome somehow thinks to render the #️⃣ emoji it's fine to use Hmm.. so one last idea.. in https://github.com/github/github/pull/165445/ maybe we can only remove - font-family: "Apple Color Emoji", "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol";
+ font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; Then emoji should work at least when they get wrapped in a |
This was it! I'll continue with github/github#165445 and close this out. Thanks for the help here ❤️ |
This PR does a few things.
Segoe UI Symbol
from the marketingfont-family
. It was already removed from the defaultfont-family
in Remove "Segoe UI Symbol" from font stack #906Segoe UI
from all font families. This font is causing emoji rendering issues on Windows 10 on github.com and as far as I can tell can be safely removed./cc @primer/ds-core