You are not logged in.

#1 2021-10-21 14:47:31

laichiaheng
Member
Registered: 2017-02-12
Posts: 297

[solved]The font in Github suddenly becomes ugly on Firefox.

The edge of texts are weird, it doesn't happen to chromium.
You need to see it in fullscreen.
https://i.imgur.com/Impitfa.png

Last edited by laichiaheng (2021-10-21 16:30:46)

Offline

#2 2021-10-21 14:53:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [solved]The font in Github suddenly becomes ugly on Firefox.

Don't embed huge images directly: https://wiki.archlinux.org/title/Genera … s_and_code

Check which font is actually resolved in e.g. the browser inspection tools and then double check with fc-match. I most often see that when the older ms fonts are resolved which lack a few modern hinting information.

Offline

#3 2021-10-21 15:30:27

laichiaheng
Member
Registered: 2017-02-12
Posts: 297

Re: [solved]The font in Github suddenly becomes ugly on Firefox.

V1del wrote:

Don't embed huge images directly: https://wiki.archlinux.org/title/Genera … s_and_code

Check which font is actually resolved in e.g. the browser inspection tools and then double check with fc-match. I most often see that when the older ms fonts are resolved which lack a few modern hinting information.

[laichiaheng@Julian-PC ~]$ fc-match
NotoSansCJK-Regular.ttc: "Noto Sans CJK TC" "Regular"

Offline

#4 2021-10-21 15:37:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [solved]The font in Github suddenly becomes ugly on Firefox.

You need to put the actual font name github tries to use.

E.g.

fc-match Arial
fc-match Helvetica
fc-match sans-serif

Offline

#5 2021-10-21 15:40:21

laichiaheng
Member
Registered: 2017-02-12
Posts: 297

Re: [solved]The font in Github suddenly becomes ugly on Firefox.

V1del wrote:

You need to put the actual font name github tries to use.

E.g.

fc-match Arial
fc-match Helvetica
fc-match sans-serif
[laichiaheng@Julian-PC ~]$ fc-match Arial
arial.ttf: "Arial" "Regular"
[laichiaheng@Julian-PC ~]$ fc-match Helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"
[laichiaheng@Julian-PC ~]$ fc-match sans-serif
NotoSansCJK-Regular.ttc: "Noto Sans CJK TC" "Regular"

Offline

#6 2021-10-21 16:11:36

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [solved]The font in Github suddenly becomes ugly on Firefox.

[laichiaheng@Julian-PC ~]$ fc-match Helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"

That is probably the problem.
https://wiki.archlinux.org/title/Font_c … rated_PDFs


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2021-10-21 16:29:43

laichiaheng
Member
Registered: 2017-02-12
Posts: 297

Re: [solved]The font in Github suddenly becomes ugly on Firefox.

progandy wrote:
[laichiaheng@Julian-PC ~]$ fc-match Helvetica
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"

That is probably the problem.
https://wiki.archlinux.org/title/Font_c … rated_PDFs

Thanks, after installing tex-gyre-fonts, and do fc-cache -fv, the problem is solved.

Offline

Board footer

Powered by FluxBB