Re: Unix font warning -- CJK-related...


Subject: Re: Unix font warning -- CJK-related...
From: Anthony Fok (anthony@thizlinux.com)
Date: Mon Dec 10 2001 - 20:15:39 CST


Hello Pierre and all,

Somewhat related to this is that we have been getting AbiWord Unix font
warnings upon start-up since 0.9.5. It turns out that AbiWord was trying to
add fontpaths like

        /usr/share/AbiSuite/fonts/zh-TW

to X, but as you know, the fonts.dir in CJK font subdirs
(e.g. zh-TW, zh-CN, ja, ko) use a special format to include PostScript
names, XLFD and metric information, so X can't handle these fonts.dir
anyway. Included is a patch to prevent AbiWord from adding these
non-X-standard fonts.dir if the subdir names start with "zh", "ko" or
"ja". Since AbiWord has always handled these CJK fonts.dir internally,
this patch does not affect useability, but does get rid of the Unix font
warnings when users start AbiWord under a CJK locale.

Another small change in the patch is to change this:

        %%DocumentNeededResources font NimbusRomNo9L-Regu font font NimbusRomNo9L-Regu font

to this:

        %%DocumentNeededResources: font NimbusRomNo9L-Regu NimbusRomNo9L-Regu

According to the on-line guides that I could find, there appears to be
a colon, and the keyword "font" is only used once.

Also there are two small typo fixes in the comments. :-)

Please apply these patches if they look alright. Many thanks!

Anthony

-- 
Anthony Fok Tung-Ling
ThizLinux Laboratory   <anthony@thizlinux.com> http://www.thizlinux.com/
Debian Chinese Project <foka@debian.org>       http://www.debian.org/intl/zh/
Come visit Our Lady of Victory Camp!           http://www.olvc.ab.ca/




This archive was generated by hypermail 2b25 : Mon Dec 10 2001 - 20:10:28 CST