eric@ontek.com (Eric Hanson) (11/09/90)
Hey campers -- I got a question... 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. Thanks in advance, Eric Hanson Ontek Corporation Laguna Hills, CA
garfinke@hpfcda.HP.COM (Dan Garfinkel) (11/13/90)
> 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