GNOME Bugzilla – Bug 562998
GtkFontButton documentation improvements
Last modified: 2008-12-03 13:16:07 UTC
Documentation Section: gtk_font_button_get_name() Retrieves the name of the currently selected font. Correct version: Retrieves the name of the currently selected font. This name includes style and size information as well. Instead of parsing the string, it should be used as an argument for pango_font_description_from_name(). Other information: Adding patch
Created attachment 123807 [details] [review] Proposed Patch
Created attachment 123811 [details] [review] More info Here's another version with more info for the developer. thanks sven!
Comment on attachment 123811 [details] [review] More info >+ * style and size information as well. If you want to render something >+ * with the font, use pango_font_description_from_string() with this font >+ * description. If you're interested in peeking certain values (family name, Actually, you shouldn't call this string a "font description", because that's basically what a PangoFontDescription _really_ is. Better write "this string" or "the result".
Created attachment 123816 [details] [review] Updated more info doc patch Done, :-)
please, use "#PangoFontDescription" to get a nice cross-reference link to the Pango documentation for the PangoFontDescription API. other than that, it's pretty much good to be committed.
Committed to revision 21842: 2008-12-03 Sven Herzberg <sven@imendio.com> Bug 562998 – GtkFontButton documentation improvements * gtk/gtkfontbutton.c: mention the way the font string should be used. Patch by Sven Herzberg and Nelson Benitez