Should a PangoFontDescription created by pango_font_description_from_string be g_free'd after I use it to create a font? The doc is below the horizontal line below.
Also, is there an easy way to create a PangoFontDescription from a string that looks like: "-*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*" ? ___________________________________________________________________________ pango_font_description_from_string() PangoFontDescription* pango_font_description_from_string(const char *str); Creates a new font description from a string representation in the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, or stretch, and SIZE is an decimal number (size in points). Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to NULL. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0. str : string representation of a font description. Returns : a new PangoFontDescription. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list