On Sun, 08 Jul 2001, Hans Breuer wrote:
> At 14:32 07.07.01 -0500, Lars Clausen wrote:
>>
>>To get the list of fonts from X for FreeType, I need to include Xlib.h,
>>but that defines a Font struct. I will need to rename the Font structure
>>to DiaFont. Stand by for mass renaming. I wish I had a refactoring
>>editor:)
>>
> Or even better C++:
> namespace X {
> #include "XLib.h"
> }
Would be nice, wouldn't it?
> Why can't you use the XListFonts (and XFreeFonts) surrogates defined by
> the gtk-1.3-win32-production branch which work on string lists too and
> are rather portable ? They are called
> gdk_font_list_new/gdk_font_list_free and can be implemented as simple
> wrappers on X.
Because I need to get at the actual filenames, not just font names, to feed
to FreeType. Currently, I'm looking at XGetFontPath to get it.
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | Hårdgrim of Numenor
"I do not agree with a word that you say, but I | Retainer of Sir Kegg
will defend to the death your right to say it." | of Westfield
--Evelyn Beatrice Hall paraphrasing Voltaire | Chaos Berserker of Khorne