RE: FW: Getting Font information.



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]