Joined: 22 Feb 2004
|Posted: Thu Sep 11, 2014 5:14 pm Post subject: Firefox font substitution with Infinality seems broken
|I've noticed that some webpages that try to use Arial (or sans-serif) have wonky font substitution with the Infinality font config set. For some reason, Arial is being substituted with a serif font like Liberation Serif!.
Let me preface this with...
- Infinality USE flag is enabled
- The Infinality config used is Infinality, lcdfilter config is Infinality
- Firefox is compiled using the --use-system-cairo flag enabled. (I read on a different post that enabling it should help, but it had no effect)
- Using the Infinality font test page as an example. Notably slashdot.org as a real example where the article headlines are serif when they should be sans-serif.
- Microsoft corefonts is NOT installed. There is no Arial.ttf and I'm preferring font substitution (say Liberation Sans) as MS fonts look ugly to me with Infinality.
Here are screenshots of Arial from the Infinality font test page in Firefox and Chromium.
Arial in Firefox (showing as serif)
Arial in Chromium (showing correctly as sans-serif)
Here are where things get weird on top of that
Loading config file /etc/fonts/fonts.conf
Scanning config dir /etc/fonts/conf.d
Loading config file /etc/fonts/conf.d/52-infinality.conf
Loading config file /etc/fonts/infinality/infinality.conf
Scanning config dir /etc/fonts/infinality/conf.d
Loading config file /etc/fonts/infinality/conf.d/20-aliases-default-inf.conf
Loading config file /etc/fonts/infinality/conf.d/20-fix-cantarell.conf
Loading config file /etc/fonts/infinality/conf.d/21-aliases-wine-win7-inf.conf
Loading config file /etc/fonts/infinality/conf.d/30-non-latin-inf-win.conf
Loading config file /etc/fonts/infinality/conf.d/41-repl-os-inf.conf
Loading config file /etc/fonts/infinality/conf.d/42-repl-global.conf
Loading config file /etc/fonts/infinality/conf.d/43-repl-tt-traced-bitmap.conf
Loading config file /etc/fonts/infinality/conf.d/44-repl-corrective.conf
Loading config file /etc/fonts/infinality/conf.d/50-base-rendering-inf-osx-lin.conf
Loading config file /etc/fonts/infinality/conf.d/60-group-non-tt-fonts.conf
Loading config file /etc/fonts/infinality/conf.d/60-group-tt-fonts.conf
Loading config file /etc/fonts/infinality/conf.d/61-group-non-tt-rendering-inf-7-xp-lin.conf
Loading config file /etc/fonts/infinality/conf.d/61-group-tt-rendering-inf-7-xp.conf
Loading config file /etc/fonts/infinality/conf.d/62-tt-monospace-rendering.conf
Loading config file /etc/fonts/infinality/conf.d/62-tt-traced-bitmap-rendering.conf
Loading config file /etc/fonts/infinality/conf.d/64-override-inf.conf
Loading config file /etc/fonts/infinality/conf.d/65-override.conf
Loading config file /etc/fonts/infinality/conf.d/70-forced-synthetic.conf
Loading config file /etc/fonts/infinality/conf.d/80-selective-rendering-inf-7-xp.conf
Loading config file /etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf
Loading config file /etc/fonts/infinality/conf.d/81-final-rendering-inf-7-xp.conf
Loading config file /etc/fonts/infinality/conf.d/90-no-synthetic.conf
Loading config file /etc/fonts/infinality/conf.d/90-reject.conf
Inconsolata.otf: "Inconsolata" "Medium"
Why is Arial being fc-match to Inconsolata, a monospace font? Why does it not show as such in Firefox OR Chromium?
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
This seems ok at least.
If I use a different Infinality config, lets say... Windows, the issue disappears. While I could possibly blame the config, then why does it work properly in Chromium regardless?
I'm not sure how to fix this properly
EDIT: I am stupid and forgot the fontconfig/lcdfilter is set to Infinality, not Linux.