[Bug 519059] New: Default Chinese fonts too bad; suggest using WenQuanYi
http://bugzilla.novell.com/show_bug.cgi?id=519059 Summary: Default Chinese fonts too bad; suggest using WenQuanYi Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Enhancement Priority: P5 - None Component: Usability AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: yaoziyuan@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060200 SUSE/3.0.11-0.1.1 Firefox/3.0.11 openSUSE's default Chinese fonts are ttf-arphic-*, and they suck (look ugly, unintelligible). All other major distros have adopted the WenQuanYi Chinese fonts (http://wenq.org/) as the default. WenQuanYi (or wqy) is free and open source and includes 3 good fonts: wqy-bitmapfont (a bitmap font for displaying Chinese characters in small sizes) wqy-zenhei (a truetype Hei-style Chinese font) wqy-microhei (a truetype Hei-style Chinese font good for small sizes) there are already user-contributed repos and packages for these wqy fonts: http://packages.opensuse-community.org/index.jsp?searchTerm=wqy but i want them to enter suse's official repo and be installed by default when the user requests chinese language support. Reproducible: Always Steps to Reproduce: see Details. Actual Results: see Details. Expected Results: see Details. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=519059
Stephan Binner
http://bugzilla.novell.com/show_bug.cgi?id=519059
Mark Gray
http://bugzilla.novell.com/show_bug.cgi?id=519059
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=519059
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=519059
User tiwai@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c1
Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=519059
User yaoziyuan@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c2
--- Comment #2 from Ziyuan Yao
http://bugzilla.novell.com/show_bug.cgi?id=519059
User pwu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c3
Peng Wu
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.
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. Yes, I agree. If the font is perfect, most values can be correctly deduced from the actual font. Usually we don't specify all values in fontconfig, except for some wrong values. 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... The language properties of a font is computed automatically by fontconfig by testing the glyphs coverages in the font, and saved in fontconfig cache. Please read section "LANG TAGS" in `man fonts.conf`, I think that will be the answer. Currently I think a single list is enough, just add WenQuanYi font to
http://bugzilla.novell.com/show_bug.cgi?id=519059
User pwu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c5
--- Comment #5 from Peng Wu
http://bugzilla.novell.com/show_bug.cgi?id=519059
User tiwai@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c6
--- Comment #6 from Takashi Iwai
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... The language properties of a font is computed automatically by fontconfig by testing the glyphs coverages in the font, and saved in fontconfig cache. Please read section "LANG TAGS" in `man fonts.conf`, I think that will be the answer.
But it doesn't count the difference of style and glyphs that each country assumes. For example, for Japanese fonts, always gothic-style glyphs are used as sans-serif while usually other style ("mincho"-style in Japanese) glyphs are used in Chinese fonts for sans-serif. Also, some glyphs are in different forms between Chinese and Japanese although sharing the same code point. Thus, since many Chinese fonts cover Japanse glyph code-point (also they share most code points), the appearance is influenced by the order of the list, whether Chinese or Japanese fonts come first.
Currently I think a single list is enough, just add WenQuanYi font to the end of the each list.
In this case, appending wqy font to the end would work for Japanese since it's evaluated at the last. But, just wonder whether it's still chosen even if any other fonts... -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=519059
User pwu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c7
--- Comment #7 from Peng Wu
For example, for Japanese fonts, always gothic-style glyphs are used as sans-serif while usually other style ("mincho"-style in Japanese) glyphs are used in Chinese fonts for sans-serif. Also, some glyphs are in different forms between Chinese and Japanese although sharing the same code point.
Hi Takashi, Ah, interesting. I never know this style issue before. Could you give me some glyph examples which are sharing the same code point in Unicode for Japanese, but have different shapes in different styles. (in gothic style and mincho style). Thanks. -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=519059
User tiwai@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c8
--- Comment #8 from Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=519059
User tiwai@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c9
--- Comment #9 from Takashi Iwai
BTW, while I'm rechecking ttf-wqy-zenhei again, I found that "WenQuanYi Zen Hei" is added to both sans-serif and serif. This looks strange to me. Does wqy-zenhei font include serif style at all? I don't think there are sans/sanserif font difference in Chinese. Correct me on
http://bugzilla.novell.com/show_bug.cgi?id=519059
User pwu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c10
--- Comment #10 from Peng Wu
Meanwhile, I fixed ttf-wqy-zenhei and fontconfig packages on M17N repo now. I put the entries for wqy-zenhei before AR xxx, so that wqy-zenhei is preferred to arphic fonts. Hi Takashi, Thanks very much. If there are no other requests from the community, could we close this bug?
-- 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.
http://bugzilla.novell.com/show_bug.cgi?id=519059
User tiwai@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c11
--- Comment #11 from Takashi Iwai
BTW, while I'm rechecking ttf-wqy-zenhei again, I found that "WenQuanYi Zen Hei" is added to both sans-serif and serif. This looks strange to me. Does wqy-zenhei font include serif style at all? I don't think there are sans/sanserif font difference in Chinese. Correct me on
(In reply to comment #8) this, if I am wrong.
What about Latin glyphs? Doesn't this font include them?
(In reply to comment #9)
Meanwhile, I fixed ttf-wqy-zenhei and fontconfig packages on M17N repo now. I put the entries for wqy-zenhei before AR xxx, so that wqy-zenhei is preferred to arphic fonts. Hi Takashi, Thanks very much. If there are no other requests from the community, could we close this bug?
I think we can close this as now. My concern above is just a minor issue. (And it's assigned to you now, feel free to close ;) -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=519059
User pwu@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=519059#c12
Peng Wu
What about Latin glyphs? Doesn't this font include them?
Yes, I think it contains. But I don't think it matters for Chinese.
I think we can close this as now. My concern above is just a minor issue. (And it's assigned to you now, feel free to close ;) OK. Closing bug. Thanks.
-- 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.
participants (1)
-
bugzilla_noreply@novell.com