You are not logged in.
Since the upgrade to fontconfig 2.8.0-1 the rules of my ~/.font.conf seems to be ignored.
I have to use Japanese a lot due to my job.
And now, because some Chinese font (WenQuanYi Zen Hei) has a higher priority than Japaneses font, it makes the reading pretty uncomfortable.
my ~/fonts.conf
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Sazanami Mincho</family>
<family>Bitstream Vera Serif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
<family>VL Gothic</family>
<family>Bitstream Vera Sans</family>
<family>Verdana</family>
<family>Arial</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>VL PGothic</family>
<family>Bitstream Vera Sans Mono</family>
</prefer>
</alias>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>none</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintmedium</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>
and here is the resut of fc-match sans-serif -s
[eric@arch]# fc-match sans-serif -s [~]
Vera.ttf: "Bitstream Vera Sans" "Roman"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
wqy-zenhei.ttc: "WenQuanYi Zen Hei" "中等"
vl_gothic_regular.ttf: "VL Gothic" "regular"
verdana.ttf: "Verdana" "Normal"
arial.ttf: "Arial" "Normal"
n019003l.pfb: "Nimbus Sans L" "Regular"
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"
Waree.ttf: "Waree" "Book"
muktinarrow.ttf: "Mukti Narrow" "Regular"
kochi-gothic-subst.ttf: "Kochi Gothic" "Regular"
FreeSans.ttf: "FreeSans" "Medium"
FreeSans.ttf: "FreeSans" "obyčejné"
sazanami_mincho.ttf: "Sazanami Mincho" "Regular"
Bangla.ttf: "Bangla" "Medium"
wqy-zenhei.ttc: "文泉驛等寬正黑" "中等"
Norasi.ttf: "Norasi" "Regular"
cour.ttf: "Courier New" "Normal"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
ariblk.ttf: "Arial Black" "Normal"
vl_pgothic_regular.ttf: "VL PGothic" "regular"
FreeSerif.ttf: "FreeSerif" "Mittel"
FreeMono.ttf: "FreeMono" "Normal"
Sawasdee.ttf: "Sawasdee" "Regular"
webdings.ttf: "Webdings" "Regular"
Azad_03-09-2005.ttf: "Ekushey Azad" "Normal"
s050000l.pfb: "Standard Symbols L" "Regular"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"
DejaVuSerif-Italic.ttf: "DejaVu Serif" "Italic"
12x13ja.pcf.gz: "Fixed" "ja"
6x12-ISO8859-1.pcf.gz: "Fixed" "SemiCondensed"
6x13.pcf.gz: "Fixed" "SemiCondensed"
8x13.pcf.gz: "Fixed" "Regular"
term14.pcf.gz: "Terminal" "Regular"
9x15.pcf.gz: "Fixed" "Regular"
cu12.pcf.gz: "ClearlyU" "Regular"
cu-alt12.pcf.gz: "ClearlyU Alternate Glyphs" "Regular"
cu-pua12.pcf.gz: "ClearlyU PUA" "Regular"
18x18ja.pcf.gz: "Fixed" "ja"
10x20.pcf.gz: "Fixed" "Regular"
I would like to have the VL Gothic at an higher priority than any other CJK font.
I suppose there is some problem with the local configuration file, but I can't really guess where.
By the way, /etc/fonts/* settings files are all to defaults.
Any help will be greatly appreciated,
Thanks
Last edited by ES (2009-12-02 01:20:33)
Offline
Hi ES,
The system wide prefer fonts for CJK are defined in /etc/fonts/conf.avail/65-nolatin.conf and ~/.fonts.conf is read in 50-user.conf.
That is, the definitions in ~/.fonts.conf are overridden by 65-nolatin.conf (WenQuanYi Zen Hei is set before VL Gothic in it).
One of the easy way is to remove /etc/fonts/conf.d/65-nolatin.conf (symlink). Or, edit 65-nolatin.conf as you please, rename 50-user.conf to 99-user.conf, et cetera ...
EDIT:
BTW, "VL Gothic" is a monospace font. You should define "VL P Gothic" for sans-serif
Last edited by blowback (2009-12-01 15:27:15)
Offline
I removed 44-wqy-zenhei.conf and rebuilded the font cache, and everything is perfect now
Thank you!
Offline