Hi all, Currently i use this code to get the font for a widget: gchar *fnt = NULL; GtkWidget *foo = gtk_text_view_new (); fnt = pango_font_description_to_string (foo->style->font_desc); gtk_widget_destroy (foo); return fnt; However i always get Sans 10 though my ~/.gtkrc-2.0 contains Tahoma and the text displayed is using the Tahoma font. Is there any known way to get the font ? I've tried: GtkRcStyle *style; gchar *fnt = NULL; GtkWidget *foo = gtk_text_view_new(); style = gtk_widget_get_modifier_style(foo); but style->font_desc is NULL Any ideas please ? Best regards, -- ---------------- -- Katoob Main Developer Linux registered user # 224950 ICQ # 58475622 FIRST make it run, THEN make it run fast "Brian Kernighan". -- Don't send me any attachment in Micro$oft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html Preferable attachments: .PDF, .HTML, .TXT Thanx for adding this text to Your signature
Attachment:
pgpYprT5rCRsH.pgp
Description: PGP signature