Hi,
I'm perplexed Fontconfig behavior.
I seted up Manjaro Linux 0.8.13 x86_64 XFce for new machine, and installed KDE and Cinnamon.
I use Cinnamon usually.
This is my ~/.config/fontconfig/fonts.conf
Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit name="lcdfilter" mode="assign">
<const>lcddefault</const>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit binding="strong" name="family" mode="assign">
<string>HannariMincho</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit binding="strong" name="family" mode="assign">
<string>Osaka</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans</string>
</test>
<edit binding="strong" name="family" mode="assign">
<string>Osaka</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit binding="strong" name="family" mode="assign">
<string>Ricty Discord</string>
</edit>
</match>
<match target="pattern">
<test qual="all" compare="not_eq" name="family">
<string>sans-serif</string>
</test>
<test qual="all" compare="not_eq" name="family">
<string>serif</string>
</test>
<test qual="all" compare="not_eq" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>sans-serif</string>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
And configured
- Cinnamon Default: Kokoro Mincho
- Cinnamon Desktop: Hannari Mincho
- Cinnamon Document: Migu 1C
- Cinnamon Monospace: Ricty
- Cinnamon Window Title: 07 LogoType Gothic
- gtkrc-2.0: Kokoro Mincho
- KDE Generic, Small, Toolbar, Menu, Window Title: Kokoro Mincho
- KDE Monospace: Ricty Discord
But fc-match returns "07 LightNovel POP".
If change to enforce use sans-serif above not_eq section in fonts.conf,
Fontconfig use "07 LightNovel POP" for default.
When enforce to use sans-serif,
The default font used for an application menu.
Normally, Kokoro mincho is used for it.
07 LightNovel POP is in ~/.fonts.
The font is illegible, so I renamed it, and FontConfig Choose
$ fc-match
ume-pgc4.ttf: "梅PゴシックC4" "Regular"
"Ume P Gothic" instread of "LightNovel POP".
It is in /usr/share/fonts.
Thier fonts isn't defined in /etc/fonts nor /usr/share/fontconfig.
DejaVu Sans is chosen for a English font.
fc-match :lang=en
DejaVuSans.ttf: "DejaVu Sans" "Book"
It defined in /etc/fonts.
Ume P Gothic is applied to Cinnamon execution command window (Alt+F2), Cinnamon Menu, Firefox UI, and more.
LightNovel POP is applied (why?) as any bold font.
Skype's behavior is curious.
In contact list:
on invoked, "Kokoro Mincho" is used for a list and "LightNovel POP" for selected term.
Some time elapsed, "Yasashisa Gothic" is used for a list, and few times change selected term, "Yasashisa Gothic" for a selected term.
In chat window:
on invoked, "LightNovel POP" is used for a name and "Yasashisa Gothic" for a text. after some talk, some Mincho font is used for a text.
I have questions.
1. Why Fontconfig choose undefined font ignore configuration?
2. How to use intended font right?
Thanks in advance.