Suresh Chandrasekharan wrote:
> Alan Coopersmith wrote:
>> Suresh Chandrasekharan wrote:
>>> Interface            Stability                    Note
>>> ---------            ---------                    ----
>>> xset                  Committed                 X11 Standards
>>
>> It's not clear what you're importing here.   Calling xset with
>> specific options to change settings is Committed, but the output
>> format from the command is Not-An-Interface and subject to change
>> without warning.
>>
> Thanks Alan.
> 
> We will certainly parse the Font Path output to see needed paths are 
> included before we
> use it to set font path. Hope the comma separated font path is a 
> committed output format, isn't it ?
> 
> Font Path:
>  
> /export/home/sureshc/.gnome2/share/cursor-fonts,/usr/openwin/lib/X11/fonts/Type1/,/usr/openwin/lib/X11/fonts/Type1/sun/
>  

Not really - the "Font Path" tag could change with localization, and the
path especially cannot be relied on to be a list of font servers or
directories that directly contain fonts.   Xorg inherits the long-ago
XFree86 extension of being able to append qualifiers such as ":unscaled",
and the X11R7.3 release adds the ability to have a "catalog" directory
that contains symlinks to other font paths [1].

The Committed method of getting the current font path is XGetFontPath(3X11).

As far as I know, there has never been a public method of parsing the font 
path, or determining what meaning is applied to the values it contains.

[1] http://lists.freedesktop.org/archives/xorg/2007-June/025744.html

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering

Reply via email to