[Fontconfig] CJK Locale Inconsistencies.
pat at suwalski.net
Fri Jul 27 07:06:53 PDT 2007
I didn't get any responses about this so I played until I got relatively
First, I changed the DejaVu binding from "strong" to "same". This seemed
to play nice with Flash.
Next, I applied the attached patch. It basically forces the locale
environment to always be read as en_US.UTF-8.
What might be the negative side effects of that last patch? Is it
Pat Suwalski wrote:
> I was wondering if anyone might have some insight into a fontconfig
> problem I'm having. I'm hoping to solve it without actually changing
> code, but that is always a possibility.
> I installed an Arphic Chinese font. In the en_US.UTF-8 locale it looks
> great, because programs like Firefox will use DejaVu for the latin text
> and only use the Chinese characters from the Arphic font as needed.
> In the zh_CN.UTF-8 locale it seems that the Arphic font magically has
> priority. Pages in Firefox look terrible because it uses the cruddy
> monotype latin characters from the Arphic font.
> To work around this I made a strong binding for DejaVu Sans. This worked
> well throughout, except it broke one program: Flash. I guess Flash isn't
> smart enough to fall through font matches. It would attempt to get a
> Chinese character, look in DejaVu Sans, not find it, and then not fall
> through. So, it would draw a missing character box.
> My most recent approach has been to actually edit the Arphic font, and
> remove everything except the CJK glyphs. Then, without specifying a
> strong binding for DejaVu, everything seems to work well in both
> locales. However, this is a rather drastic approach that could have very
> bad side effects in all sorts of places, like printing.
> So, my question is, is there a way to make fontconfig behave in the
> Chinese locale as it does in the English one?
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Fontconfig