Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!pacbell!sactoh0!unify!openlook!openlook-request From: sane!genmri!doug@crdgw1.ge.com (Doug Becker) Newsgroups: comp.windows.open-look Subject: Re: point size query for Sun fonts Message-ID: <9i0ufu2@openlook.Unify.Com> Date: 22 Mar 91 19:07:33 GMT Lines: 23 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