Re: How can I determine if gnome_canvas_item_new() worked with a specified font?



La plume légère, à Tue, Oct 31, 2000 at 03:07:11PM +0900, heure d'inpiration,
Antony Stace écrivait en ces mots:
> 
> I need to know if a certain font exists on a computer.  I need to write
> some text to a gnome canvas but want to check if the font exists before
> I do it, if it doesnt then I want to use the default font on the
> computer.  At present I have something like

What you can do is use gdk_font_load. If the font is found, a pointer to a
GdkFont struct will be returned, else NULL will be returned.


W
-- 
A chicken is an egg's way of producing more eggs.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]