Hi,

I try to make my first moves with Xft, and yet I am struggeling with
the handling of core fonts ...

If a pass a XLFD-pattern for a specific (core) font to
XftFontOpenXlfd, it seems that I *always* only get back Xft fonts, no
matter how good or bad they match. Even if a core font would match the
XLFD much much better ...

Here is some output of a small toy program that I wrote, that opens a
font using XftFontOpenXlfd and shows the according Xft pattern using
XftNameUnparsed:

(gdb) run "-*-*-*-*-*-*-*-60-*-*-*-*-iso8859-*"
unparsed: Courier 10 
Pitch-6:style=Regular:slant=0:weight=100:pixelsize=8.33641:encoding=iso8859-1:core=False:antialias=True:xlfd=-*-*-*-*-*-*-*-60-*-*-*-*-iso8859-*:index=0:outline=True:scalable=True:rgba=0:render=True:minspace=False

(gdb) run "-*-charter-*-*-*-*-*-100-*-*-*-*-iso8859-*"
unparsed: Bitstream 
Charter-10:style=Regular:slant=0:weight=100:pixelsize=13.894:encoding=iso8859-1:core=False:antialias=True:xlfd=-*-charter-*-*-*-*-*-100-*-*-*-*-iso8859-*:index=0:outline=True:scalable=True:rgba=0:render=True:minspace=False

(gdb) run "-b&h-lucidatypewriter-bold-r-normal-sans-10-100-75-75-m-60-iso8859-1"
unparsed: Courier 10 
Pitch-10:style=Bold:slant=0:weight=200:pixelsize=10:encoding=iso8859-1:foundry=b&h:core=False:antialias=True:xlfd=-b&h-lucidatypewriter-bold-r-normal-sans-10-100-75-75-m-60-iso8859-1:index=0:outline=True:scalable=True:rgba=0:render=True:minspace=False

All of the selected fonts are antialiased non-core fonts. Especially
for the third pattern, I'd rather get the specified core font ... :-)

So is there any way to tell Xft that *only* core fonts (i.e. old and
ugly non-antialiased Xlib fonts) should be opened when using
XftFontOpenXlfd?

Cheers,

  Matthias

P.S. I'm using the Xft lib shipped with XFree 4.1.0.1 which was
preinstalled on my PC here.

-- 
Matthias Neubauer                                       |
Universit�t Freiburg, Institut f�r Informatik           | tel +49 761 203 8060
Georges-K�hler-Allee 79, 79110 Freiburg i. Br., Germany | fax +49 761 203 8052
_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts

Reply via email to