[Bug 492510] Regression: wqy-bitmap-fonts preferred font over truetype fonts

bugzilla at redhat.com bugzilla at redhat.com
Sun Apr 19 19:09:10 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=492510


Qianqian Fang <fangqq at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Flag|                            |needinfo?




--- Comment #29 from Qianqian Fang <fangqq at gmail.com>  2009-04-19 15:09:10 EDT ---
Finally, I upgraded my F10 to F11. I believe the changed "ShanHeiSun" font name
caused the problem you have seen (in this case, it wasn't cairo, I take back my
previous suspicions).

Here were my tests:

1. edit 61-wqy-bitmapfonts.conf, replace line#100 and #114 from "AR PL
ShanHeiSun Uni" to "AR PL UMing CN" (Uming should have been installed for
chinese-support), and make sure "wqy-zenhei-fonts" was NOT installed.

2. do your pango-view tests, everything should work as expected, no more
bitmaps: when LANG=en_US.UTF-8 and <span lang=ja>, the Han glyphs were rendered
with VL Gothic; without specifying <span lang=ja> under en_US locale, it will
use UMing, as I explained previously; if LANG=ja or LANG=zh, they will use the
preferred fonts for the respective locale.

@Akira:

can you repeat the test above and let me know if you think the results are ok
with you? I will commit this change when I get your confirmation.

<start off-topic to Bug476459>
Now, things are getting a little bit complicated if I install wqy-zenhei-fonts.
As I said, for Chinese, UMing is a serif font, and ZenHei is a sans-serif font.
So, ideally, I should use the patch I posted earlier this morning. However,
this is related to Bug#476459: if I install wqy-zenhei-fonts, VL Gothic will be
replaced by ZenHei. Looking into the settings, I realized that it wasn't
44-wqy-zenhei.conf, as Jens originally suspected; the problem was caused by
65-nonlatin.conf.

Actually, I think the font order in the current 65-nonlatin.conf is fine: as it
does not assume specific language, I believe it is a good idea to put
large-coverage fonts in front of small ones (see
https://bugs.freedesktop.org/show_bug.cgi?id=20911). The only problem is, there
is no Japanese specific font priority settings to boost VL Gothic for ja
locale!

Here is Ubuntu's way to solve this: a list of language specific (CJK only)
fontconfig settings are stored in conf.avail, named with
"{29,69,99}-language-selector-xxxx.conf" where xxxx include zh-cn, zh-hk,
zh-..., ja-jp and ko-kr. For a given desktop locale, it will link the
corresponding conf file to conf.d. Although it is a little bit messy, but I
think it serves the purpose well: 65-nonlatin is the default font order without
assuming any specific lang, if you want to overwrite that for a specific
locale, you have to add a lang-specific conf file.

@Jens:
if you want to take a look at language-selector, you can download the tar ball
at http://packages.ubuntu.com/jaunty/language-selector , untar it and check out
the fontconfig folder.

If we are short of time for F11, I can temporarily add a xx-wqy-zenhei.conf and
set VL Gothic in front of ZenHei when lang=ja; in that case, we can still
install Zen Hei for Chinese-support. 

please let me know how you want to proceed.
<end off-topic to Bug476459>

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-fonts-bugs-list mailing list