Re: TWM: truetype support

Marc Aurele La France <[email protected]> Tue, 2 Oct 2007 09:16:15 -0600 (Mountain Daylight Time)
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
On Mon, 1 Oct 2007, Eeri Kask wrote:

> Marc Aurele La France:
>> The point of using XListFonts() is that it'll resolve "fixed" & "variable"
>> to their respective XLFDs which can then be passed to XftFontOpenXlfd().

> I have installed Xorg 7.2.0 release and here XListFonts() returns
> "fixed" if called with "fixed", which XftFontOpenXlfd() unfortunately
> cannot load.  Maybe this is a bug in XftFontOpenXlfd() or in
> XListFonts(), it actually doesn't matter;  but as long as it is so
> coding "fixed" as a default (at least for 7.2.0) is very inconvenient
> for the end user (as there is as is no DefaultFont keyword to change the
> default font), in fact resulting in twm being unusable.

> Some possible solutions: (1) agree on a different than "fixed" font
> which XftFontOpenXlfd() in all X11-implementations can definitely load;
> (2) let "mono-10" or some other ttf-font be the default if XFT is
> compiled in.  (1) makes not that much sense in the case one has to drop
> "fixed" anyway.

There is a third option:  change TWM_USE_XFT to TWM_ALLOW_XFT and make the 
use of libXft configurable (default to no), instead of forcing it.

Marc.

+----------------------------------+----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310          |
|  Academic Information and        |  fax:    1-780-492-1729          |
|    Communications Technologies   |  email:  [email protected]         |
|  352 General Services Building   +----------------------------------+
|  University of Alberta           |                                  |
|  Edmonton, Alberta               |    Standard disclaimers apply    |
|  T6G 2H1                         |                                  |
|  CANADA                          |                                  |
+----------------------------------+----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.