Background
I'm using Firefox 67.0.4 on the traditional Chinese version of a daily build of Ubuntu 19.10 (Eoan) and for every website (e.g., Axios and Slashdot) that falls back to the CSS serif
keyword—often because the author(s) only specified Windows‐only fonts such as Georgia—I'm seeing the ugly AR PL UMing TW fallback font.
I've tried configuring Firefox's font settings such that the fallback font for serif text in the Latin script falls back to the Liberation Serif font. Unfortunately, this setting seems to be broken and doesn't do anything.
Based on the comments at https://bugzilla.mozilla.org/show_bug.cgi?id=1547743, I executed the fc-match serif
command, which returns a reference to the offending font as I expected:
uming.ttc: "AR PL UMing TW" "Light"
I believe that changing this value is key to manually fixing this issue without changing the operating system language to English.
Question
So my question is: "How do I configure the result of the fontconfig command fc-match serif
?" Despite the documentation I've read, I still can't figure out how to do it.
The best idea I can come up with is to put the following code in a new global configuration file named local.conf located at /etc/fonts/:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Liberation Sans</family></prefer>
</alias>
</fontconfig>
Of course, this doesn't work.
I also can't figure out anything definitive about (A) where the local user configuration file is supposed to be placed other than somewhere nested within the user's $HOME
directory, (B) what the local configuration file is supposed to be named, and (C) the minimum requirements of what the local configuration file should contain.
With regard to (A), apparently, it was historically placed in the ~/.fonts folder, but the comment in the /etc/fonts/fonts.conf file indicates that use of this directory is deprecated.