Xue Wei wrote:
> Hi Alan,
>
> At first, I'm sorry for missing your discuss about X11 fonts repackage,
> hope my comments
> is not too late for you..
Well, it's already implemented and shipped in 2008.11, but can always be
changed in future builds/releases.
> 1> I noticed in snv_103, there are several sylinks in /etc/X11/fontpath.d
> the name like 100dpi:pri=90 ,100dpi:unscaled:pri=20, TrueType:pri=41...
> Are there any rules for name the sylinks name?
The :unscaled and :pri=XX bits are defined by the Xorg specs.
For the name, I just used the name of the directory being pointed to - I
don't think it matters.
> 2>This solution seems only handle the fonts form package FSWxorg-fonts,
> from my point of view,
> if OWfontpath file has been removed, the Chinese fonts would not
> available for X11 at least.
The OWfontpath files are provided and handled by the G11n teams - it's up
to you to decide whether or not to remove them, I have done nothing with
them. That's why I wrote (in the message you quoted):
>> The G11n teams will have to figure out if they want to use this method to
>> replace OWfontpath and other methods of adding the per-locale font
>> directories to the X server font path.
> 3> As you know, besides xorg-fonts, we also have many additional fonts
> which are place in
> /usr/openwin/lib/locale/XXX/X11/fonts, and they are declared in
> /usr/openwin/lib/locale/XXX/OWfontpath,
> if replace OWfontpath by fontpath.d, how can X11 use these additional
> fonts?
The packages that install those local fonts would add links to the
directories to /etc/X11/fontpath.d - though then they'll be available
regardless of locale. Whether or not that's something you want to do
is up to the G11n teams to determine.
> 4> Recently we also integrated many open Truetype fonts, we put them to
> /usr/X11/lib/X11/fonts/TrueType
> by font name category sub-directory. You may see them in
> /usr/X11/lib/X11/fonts/TrueType, such like,
> arphic, arabeyes, ipafont, thai-scalable, hangyang... and so on. If X11
> want to use some of these fonts,
> How to make them visible by X11 by fontpath.d method?
The packages that make those subdirectories would add links to the
subdirectories to /etc/X11/fontpath.d, or you'd decide that legacy
X apps don't need to see these fonts, and do nothing, leaving them
accessible only to apps using fontconfig, like GTK/QT apps.
> option B:
> Create sub-directory in fontpath.d. The sub-directorys are locale
> category, it maybe look like: ko_KR.UTF-8, zh_CN.UTF-8,
> en_US.UTF-8. In these locale-sub-directory create sylike to link the
> really fonts path. Current contents in fontpath.d could be
> put into default or C(locale) sub-directory which include default X11
> xorg fonts.
I don't believe the code will handle subdirectories automatically, so
if you did this, you would then need to add those subdirectories to
the font path. (Actually, I wonder if you made the locale subdirectory
be named catalogue:ko_KR.UTF-8 if it would work - that's something you
can look into if you desire.)
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering