Hi,
I basically get the same plus more on my system :-) Badically 3 issues:
#1) Having multiple values in <test> isn't supported
--> If these item tests are ORed, it solves problem.
#2) Having multiple <family> in <alias>
--> If dtd allows <family> as the super <family> too, it solves problem.
#3) reading configurations from ~/.fonts.conf.d is deprecated.
--> Kinder message will be helpful as fontconfig but this may be
fontconfig packager's work to fix :-)
The root causes of this problem are:
ttf-wqy-zenhei: /etc/fonts/conf.avail/25-wqy-zenhei.conf (#1)
fonts-arphic-uming: /etc/fonts/conf.avail/41-arphic-uming.conf (#2)
fonts-arphic-ukai: /etc/fonts/conf.avail/41-arphic-ukai.conf (#2)
fonts-arphic-uming: /etc/fonts/conf.avail/64-arphic-uming.conf (#1)
fontconfig-config: /usr/share/fontconfig/conf.avail/50-user.conf (#3)
Is this due to fonconfig changed feature or font packages were broken to
start with. Before reassigning #1 and #2 to these packages, I would
like to discuss how these should be fixed.
We need to know what is the most smart ways. I do not wish to repeat
too many things to fix #1 and #2. See below.
As for #3: ~/.fonts.conf.d was introduced in 2.7.1. ... hmmm user doc has
it as deprecated. OK fair game but plese suggest upstream new warnig:
~/.fonts.conf.d is deprecated. Move it to ~/.local/share/fontconfig/conf.d .
This is much more informative.
Back to #1 and #2,
-----------------------------------------------
$ cat /etc/fonts/conf.d/25-wqy-zenhei.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- WenQuanYi Zen Hei Configure File -->
<fontconfig>
<!-- modified by Madsen@SMTH -->
<match target="font">
<test qual="any" name="family">
<string>WenQuanYi Zen Hei</string>
<string>文泉驿正黑</string>
<string>文泉驛正黑</string>
</test>
<edit name="globaladvance"><bool>false</bool></edit>
<edit name="spacing"><int>0</int></edit>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
<edit name="rgba" mode="assign"><const>none</const></edit>
<edit name="embeddedbitmap"><bool>false</bool></edit>
</match>
</fontconfig>
-----------------------------------------------
Should I have to do the following? Kinda ugly...
-----------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- WenQuanYi Zen Hei Configure File -->
<fontconfig>
<!-- modified by Madsen@SMTH -->
<match target="font">
<test qual="any" name="family">
<string>WenQuanYi Zen Hei</string>
</test>
<edit name="globaladvance"><bool>false</bool></edit>
<edit name="spacing"><int>0</int></edit>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
<edit name="rgba" mode="assign"><const>none</const></edit>
<edit name="embeddedbitmap"><bool>false</bool></edit>
</match>
<match target="font">
<test qual="any" name="family">
<string>文泉驿正黑</string>
</test>
<edit name="globaladvance"><bool>false</bool></edit>
<edit name="spacing"><int>0</int></edit>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
<edit name="rgba" mode="assign"><const>none</const></edit>
<edit name="embeddedbitmap"><bool>false</bool></edit>
</match>
<match target="font">
<test qual="any" name="family">
<string>文泉驛正黑</string>
</test>
<edit name="globaladvance"><bool>false</bool></edit>
<edit name="spacing"><int>0</int></edit>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
<edit name="rgba" mode="assign"><const>none</const></edit>
<edit name="embeddedbitmap"><bool>false</bool></edit>
</match>
</fontconfig>
-----------------------------------------------
As for #2:
-----------------------------------------------
$ cat /etc/fonts/conf.avail/41-arphic-uming.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Serif faces
-->
<alias>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ShanHeiSun Uni MBE</family>
<family>AR PL UMing CN</family>
<family>AR PL UMing HK</family>
<family>AR PL UMing TW</family>
<family>AR PL UMing TW MBE</family>
<default><family>serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ShanHeiSun Uni MBE</family>
<family>AR PL UMing CN</family>
<family>AR PL UMing HK</family>
<family>AR PL UMing TW</family>
<family>AR PL UMing TW MBE</family>
<default><family>monospace</family></default>
</alias>
</fontconfig>
-----------------------------------------------
Hmmmm... I do not know. I guess we need to define some family covering
all these chinese font family. But again many duplicated work. I wish
family can contain family.
Osamu
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]