Re: [gtkmm] Stock Pango::FontDescriptions



Jonathan,

you might try something like this

Gtk::TextView*  m_example_text = Gtk::manage (new Gtk::TextView ());

Glib::RefPtr<Gtk::Style> style = m_example_text.get_style ();
Pango::FontDescription default_font = style->get_font ();
Glib::ustring usfont = default_font.to_string ();


-Vlad

On Tue, May 18, 2004 at 04:03:39PM -0400, Jonathan Brandmeyer wrote:
> How can I load the Pango::FontDescription that corresponds to the
> default "Application font" or "Terminal font" as set in the
> gnome-font-properties program?
> 
> Thanks,
> Jonathan Brandmeyer
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list

-- 
______________________________________________________
Vladislav Grinchenko    e-mail (w): vgrinche integ com
Software Engineer            (h): 3rdshift comcast net
Integral Systems, Inc.

   Focus on quality, and productivity will follow.
______________________________________________________



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