Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hplabs!hpfcso!hpfcda!garfinke From: garfinke@hpfcda.HP.COM (Dan Garfinkel) Newsgroups: comp.windows.x Subject: Re: X11 font names Message-ID: <1250009@hpfcdan.HP.COM> Date: 12 Nov 90 16:50:11 GMT References: <1555@ontek.com> Organization: Hewlett-Packard, Fort Collins, CO Lines: 13 > Does anyone have a way to find the name (i.e. family name, > size, bold or italic, etc.) of a font given an XFontStruct? > I can't find that info anywhere on the structure or > on the properties list. The name of the font is usually stored in the XA_FONT property. This is a convension and not a rule. To get the name of the font back, run through the properties list looking for (name == XA_FONT). The "card32" is an atom which is the name of the font. To get the name string, call XGetAtomName. -Dan