http://bugzilla.novell.com/show_bug.cgi?id=519059
User tiwai@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c4
--- Comment #4 from Takashi Iwai
I checked the M17N/ttf-wqy-zenhei package. And I think this is caused by 57-wqy-zenhei.conf in ttf-wqy-zenhei. Here are the texts in wqy-zenhei.conf: <!-- 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> Why we need this? If this font should be modified like this, we should fix the font instead. But this section will not affect other parts of the system, so we can keep it there, if you want to keep it.
I can only guess, but at least, globaladvance is known to be buggy with XFT, so this workaround is found for other fonts as well. The embeddedbitmap is a matter of taste. Maybe others can be removed.
The second part: <alias> <family>serif</family> <prefer> <family>Bitstream Vera Serif</family> <family>DejaVu Serif</family> <family>WenQuanYi Zen Hei</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>DejaVu Sans</family> <family>Bitstream Vera Sans</family> <family>WenQuanYi Zen Hei</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>DejaVu Sans Mono</family> <family>Bitstream Vera Sans Mono</family> <family>WenQuanYi Zen Hei Mono</family> </prefer> </alias> We should remove this, this will affect other locales. And modify suse-post-user.conf in fontconfig, put WenQuanYi in the end of sans, serif and monospace.
Yes, this is what I mentioned above. However, the known problem is that we have only a single list for all locales. Thus, if you run in ja locale, an unexpected Chinese font might be chosen (when it's listed before Japanese fonts and contains Japanese glyphs), although the glyph style doesn't match at all; or vice versa, a Japanese font is chosen for Chinese locales. That's why I asked the possibility of locale-specific way... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.