[gtkmm] Re: Default font question
- From: "Andrew E. Makeev" <andrew solvo ru>
- To: Daniel Elstner <daniel elstner gmx net>
- Cc: gtkmm-main <gtkmm-list gnome org>, GTK-MAIN <gtk-list gnome org>
- Subject: [gtkmm] Re: Default font question
- Date: Thu, 20 May 2004 10:01:22 +0400
Thanks Daniel, that works properly.
Regards,
-andrew
Daniel Elstner wrote:
The best way to access the default font, and also to keep track of it in
case the user changes that setting while your app is running, would be
something like this:
MyWindow::on_style_changed(const Glib::RefPtr<Gtk::Style>& previous_style)
{
Gtk::Window::on_style_changed(previous_style);
app_font_ = get_pango_context()->get_font_description();
}
This assumes that MyWindow is your toplevel window class derived from
Gtk::Window, and that you didn't assign a custom font to it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]