Closing.
]]>Ah, the link *is* the cause, it doesn't explain the solution.
This breaks because it unconditionally makes noto sans a legal match to everything.
This is outright stupid, you can keep the noto defaults if you want, but remove the<match> <edit mode="prepend" name="family"><string>Noto Sans</string></edit> </match>
part.
Thanks a lot, this worked for the Edge browser!
]]>This breaks because it unconditionally makes noto sans a legal match to everything.
This is outright stupid, you can keep the noto defaults if you want, but remove the
<match>
<edit mode="prepend" name="family"><string>Noto Sans</string></edit>
</match>
part.
]]> <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<edit mode="prepend" name="family"><string>Noto Sans</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Serif</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>sans-serif</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>monospace</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Mono</string></edit>
</match>
</fontconfig>
It appears such file breaks font fallback in Chrome, so I just deleted it.
]]>pacman -Q | grep -E '(font|harf|chrom)'
If there is style font-family: monospace; then font is correct, but in case of font-family: 'nonexisitngfont', monospace; Chrome fallbacks to Noto Sans:
Fonts are displayed correctly in Firefox, but this is rather problem with system configuration than Chrome issue. There is already similar thread, but it is unresolved.
This is fc-match output:
$ fc-match "nonexistingfont"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
$ fc-match monospace
Hack-Regular.ttf: "Hack" "Regular"
Installed font packages:
$ pacman -Qqem | grep font
nerd-fonts-complete
ttf-google-fonts-git
ttf-ms-fonts
ttf-unifont
What can be wrong?
]]>