-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Some users report broken font starting with Gitea 1.14 #15844
Comments
I suspect the issue is that the user does not have an emoji font installed. We previously would provide it as a webfont but it was thought that this was unnecessary. In most cases downloading and install noto color emoji fonts would fix the problem. |
Downstream closed as invalid ... Can you still have a look at https://codeberg.org/Codeberg/Community/issues/445 (the missing numbers issue)? Was reported twice and seems much more relevant than missing emoji. |
This just doesn't make any sense - why would non emoji numbers be affected? I think we need to see a screenshot of an actual issue that is occuring. If it's just the font rendering issue because the emoji font isn't being provided, well one option for codeberg is to just edit the <style>
@font-face {
font-family: 'Noto Color Emoji';
src: url('/NotoColorEmoji.eot'); /* IE9 Compat Modes */
src: url('/NotoColorEmoji.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/NotoColorEmoji.woff2') format('woff2'), /* Super Modern Browsers */
url('/NotoColorEmoji.woff') format('woff'), /* Pretty Modern Browsers */
url('/NotoColorEmoji.ttf') format('truetype'), /* Chrome, Safari, Android, iOS */
url('/NotoColorEmoji.svg#svgFontName') format('svg'); /* Legacy iOS */
}
</style> and then add the font files to the |
The second screenshot is actually from Tor Browser 10.0.16 (based on Mozilla Firefox 78.10.0esr) |
I put the quotes below the screenshot, sorry for the confusion. |
The Tor browser does not use the system-ui font and no other fonts in the stack match its default fonts. In fact it is possible that it will in future only match generic fonts. This means that all rendering will first try the emoji fonts before falling back to the sans-serif font for glyphs. In this case has the emoji fall back fonts for Tor contains empty glyphs for numbers - in order to protect privacy - and leads to numbers being rendered as empty glyphs. This is clearly not ideal and whilst we could use the Arimo font - as I state above I suspect that Tor will eventually ban detecting this and we should instead move the sans-serif font higher in the stack so that it matches before the emoji fonts. Partial fix of go-gitea#15844 Signed-off-by: Andrew Thornton <art27@cantab.net>
The mentioned pull fixes the most pressing issue with a still supported browser. The other issue is free for further investigation, but only seems to affect outdated Ungoogled Chromium on oldoldstable Debian and only Emoji instead of more-relevant numbers. |
The Tor browser does not use the system-ui font and no other fonts in the stack match its default fonts. In fact it is possible that it will in future only match generic fonts. This means that all rendering will first try the emoji fonts before falling back to the sans-serif font for glyphs. In this case has the emoji fall back fonts for Tor contains empty glyphs for numbers - in order to protect privacy - and leads to numbers being rendered as empty glyphs. This is clearly not ideal and whilst we could use the Arimo font - as I state above I suspect that Tor will eventually ban detecting this and we should instead move the sans-serif font higher in the stack so that it matches before the emoji fonts. Partial fix of #15844 Signed-off-by: Andrew Thornton <art27@cantab.net>
Backport go-gitea#15855 The Tor browser does not use the system-ui font and no other fonts in the stack match its default fonts. In fact it is possible that it will in future only match generic fonts. This means that all rendering will first try the emoji fonts before falling back to the sans-serif font for glyphs. In this case has the emoji fall back fonts for Tor contains empty glyphs for numbers - in order to protect privacy - and leads to numbers being rendered as empty glyphs. This is clearly not ideal and whilst we could use the Arimo font - as I state above I suspect that Tor will eventually ban detecting this and we should instead move the sans-serif font higher in the stack so that it matches before the emoji fonts. Partial fix of go-gitea#15844 Signed-off-by: Andrew Thornton <art27@cantab.net>
Backport #15855 The Tor browser does not use the system-ui font and no other fonts in the stack match its default fonts. In fact it is possible that it will in future only match generic fonts. This means that all rendering will first try the emoji fonts before falling back to the sans-serif font for glyphs. In this case has the emoji fall back fonts for Tor contains empty glyphs for numbers - in order to protect privacy - and leads to numbers being rendered as empty glyphs. This is clearly not ideal and whilst we could use the Arimo font - as I state above I suspect that Tor will eventually ban detecting this and we should instead move the sans-serif font higher in the stack so that it matches before the emoji fonts. Partial fix of #15844 Signed-off-by: Andrew Thornton <art27@cantab.net>
The Tor browser does not use the system-ui font and no other fonts in the stack match its default fonts. In fact it is possible that it will in future only match generic fonts. This means that all rendering will first try the emoji fonts before falling back to the sans-serif font for glyphs. In this case has the emoji fall back fonts for Tor contains empty glyphs for numbers - in order to protect privacy - and leads to numbers being rendered as empty glyphs. This is clearly not ideal and whilst we could use the Arimo font - as I state above I suspect that Tor will eventually ban detecting this and we should instead move the sans-serif font higher in the stack so that it matches before the emoji fonts. Partial fix of go-gitea#15844 Signed-off-by: Andrew Thornton <art27@cantab.net>
Description
Forwarded from Codeberg https://codeberg.org/Codeberg/Community/issues/444 :
Multiple users reported issues with fonts in different browsers where some versions work, some don't. Especially affected are Emojis, two users (one in the issue, another one via Mastodon) reported that numbers were missing in the fonts. Please find the original report at the URL above, additionally I'll copy some relevant information here.
If you can, please join the discussion over at Codeberg, since some users don't want to use Microsoft GitHub. Otherwise, I can forward the discussion, but please expect high delay.
Thank you for investigating this.
Screenshots
The text was updated successfully, but these errors were encountered: