On Thu, 6 Sep 2001, Cyrille Chepelov wrote:
> Le jeu, sep 06, 2001, à 03:40:19 +0200, pascal a écrit:
>>
>> Maybe an option to skip the DIA aplash screen would be sufficient .. ?
>
> please, read the list (*one* day ago), and pay some attention to
> bugzilla.gnome.org (especially
> http://bugzilla.gnome.org/show_bug.cgi?id=58196)
>
> If someone knows how to know the width of a text in a given font, without
> resorting to using an X display, while still finding the fonts on the
> system (can I hear "lobby for Defoma to be mandated by the next rev of
> LSB" ?), the companion program "diaconv" is waiting for your help.
>
> Conceptually, it's not complicated at all: just find the width of a text
> in a given font. Technically, well, I'm waiting for patches, because this
> is beyond my capacity.
Check the FreeType mailing list archives, some other program does this
(kludgily) by looking for the font.dir files in some standard places.
My freetype code uses XGetFontPath, which also requires a display.
-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