bracchi@tac.comp (Christiane.Bracchi) (12/21/90)
I am trying to develop a few tools using X-Xt. One of these has to manage a table of currently loaded fonts ( with associated XFontStruct ), with such a function call as: MyToolLoadFont (String font_name); where font_name has the same pattern as in XLoadQueryFont (i.e, whith *'s). The number of fonts that can be loaded in this tool is limited, so it is crucial no to fill several entries in thisa table with one single font; thus I have to check if a font has already been loaded. For this purpose, I compare font names in FULL EXTENSION; to get the name, I take benefit of the fact the name of the font is usually stored in the XA_FONT property. Unfortunately, this appears to be a convention but not a rule. Could someone help me in finding a safer approach ? -- +-----------------------------+--------------------------------------------+ | Christiane Bracchi | EMail : Christiane.Bracchi@cediag.bull.fr | | BULL CEDIAG | or bracchi@bull.fr | | 68, Route de Versailles | or ...!mcvax!inria!bullfr!bracchi | | F-78430 Louveciennes FRANCE | | +-----------------------------+--------------------------------------------+