mls@cbnewsm.att.com (mike.siemon) (03/21/91)
Pardon me if this is a FAQ, but I notice that some of the font families in an OpenWindows environment are listed (say, by XListFont) with names like: -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-1 with all zeros in the fields defining the designed resolution & pointsize. XLoadQueryFont works on such names, but I am at a loss to understand what size one gets that way, or how one might specify a particular point size. I would assume that there is some link up here with outline lucida fonts, but how does one deal with this in X? (not using XView, incidentally; I'm using OLIT as my toolkit.) -- Michael L. Siemon "O stand, stand at the window, m.siemon@ATT.COM As the tears scald and start; ...!att!attunix!mls You shall love your crooked neighbor standard disclaimer With your crooked heart."
doug@crdgw1.ge.com (Doug Becker) (03/23/91)
XLoadQueryFont works on such names, but I am at a loss to understand what
size one gets that way, or how one might specify a particular point size.
From the "X11/NeWS Version 2 Server Guide," p. 35:
Using OpenFonts with the X11 Protocol
X11 can access the OpenFonts scaling technology through an enhanced
version of the X Logical Font Description (XLFD) protocol. The XLFD
gives numeric values for pixel size, point size, resolution, and
maximum width. Since these variables have an indefinite range of
values for a scalable font, these fonts are reported (through xlsfonts
or the XListFonts() request) as having 0 in these fields. To use them,
take the reported name and replace the pixel size or the point size
field with the desired value. Note that the point size argument is in
decipoints, and it takes precedence if both values are supplied.
--
Doug Becker
doug@nmri.ge.com
crdgw1!sane!doug