Article View: comp.windows.x
Article #36701Re: Server Guru Question -- FontPtr to font name
From: Keith Packard
Date: Mon, 12 Feb 1990 20:04
Date: Mon, 12 Feb 1990 20:04
15 lines
1065 bytes
1065 bytes
> Give a FontPtr, is there a call somewhere in the server to get the
> font name (as supplied by the client)?
There is no direct call to retrieve the font name. Most fonts will have
a font-property "FONT" which containts a name which can be used to lookup the
font. Run through the list of font properties, looking for the one
with name == MakeAtom ("FONT", 4, 1).
Note that this name is the "canonical" name of the font; it is unlikely to
match the string used to open the font, which typically contains wild-card
characters or is an alias name.
Keith Packard
MIT X Consortium
Technical Details
Message-ID:
<9002122004.AA26431@xenon.lcs.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!keithReferences:
<1250002@hpfcdan.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: Server Guru Question -- FontPtr to font name Message-ID: <9002122004.AA26431@xenon.lcs.mit.edu> Date: 12 Feb 90 20:04:47 GMT References: <1250002@hpfcdan.HP.COM> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 15