Default font question
- To: GTK-MAIN <gtk-list@xxxxxxxxx>, gtkmm-main <gtkmm-list@xxxxxxxxx>
- Subject: Default font question
- From: "Andrew E. Makeev" <andrew@xxxxxxxx>
- Date: Wed, 19 May 2004 14:45:20 +0400
- Organization: Solvo Ltd.
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Hi
Could someone explain, please, how should I to determine default font
name for widget where it's applicable (label, textview, etc)?
I have used these methods:
1. Using GtkStyle: Gtk::Label ().get_style ()->get_font ().to_string ()
- returned "Sans 10"
2. Using GtkRcStyle: Gtk::Label ().get_modifier_style ()->get_font () -
returned Pango::FontDescription with gobj() == 0 (no font specified)
It's fine for Linux, but wrong on Win32 system, because it uses theme
font = "Thahoma 8".
Is there a right way to get theme default font name? (An example will be
much better than lotsa theory :) )
Thanks in advance,
-andrew
_______________________________________________
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
[GIMP Users]
[Yosemite News]
[Yosemite Photos]
[Gimp's Home]
[Steve's Art]