How can I determine if gnome_canvas_item_new() worked with a specified font?
- From: Antony Stace <antony claire co jp>
- To: gnome-devel-list gnome org
- Subject: How can I determine if gnome_canvas_item_new() worked with a specified font?
- Date: Tue, 31 Oct 2000 15:07:11 +0900
(BI need to know if a certain font exists on a computer. I need to write
(Bsome text to a gnome canvas but want to check if the font exists before
(BI do it, if it doesnt then I want to use the default font on the
(Bcomputer. At present I have something like
(Bitem = gnome_canvas_item_new(rootGroup,
(B "text", "Test",
(B "x", (double) (30 ),
(B "y", (double) (85 ),
(B "fill_color", "black",
(B "anchor", GTK_ANCHOR_CENTER,
(BIf the font "-adobe-times-medium-r-normal-*-12-*-*-*-p-*-iso8859-1"
(Bdoes not exist then I do not get anything displayed. Is there anyway I
(Bcan check before hand to see if this font exists or else can I somehow
(Bcheck the return code( I currently do not know what the return code of
(BAny help appreciated.
] [Thread Prev