RE: FW: Getting Font information.
- From: "Ian Wilkinson" <ian wilkinson silvaco com>
- To: "Owen Taylor" <otaylor redhat com>
- Cc: GNOME User group <gtk-app-devel-list gnome org>
- Subject: RE: FW: Getting Font information.
- Date: Tue, 21 Sep 2004 16:31:41 -0700
Thanks. I found a solution earlier which seems to work:
GtkStyle* style = gtk_widget_get_default_style();
if (style)
{
const char* family = pango_font_description_get_family (style->font_desc);
gint size = pango_font_description_get_size (style->font_desc);
PangoStyle style = pango_font_description_get_style (style->font_desc);
... etc
}
But, I'll keep yours in mind in case I have problems.
(Or just read the XSETTING from Qt...)
What did you mean by this?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]