docs: Fix the examples for ClutterText.set_font_name()

We shouldn't be using "pt": PangoFontDescription.from_string() assumes
points, and only accepts "px" for absolute font sizes.

https://bugzilla.gnome.org/show_bug.cgi?id=736826
This commit is contained in:
Emmanuele Bassi 2014-09-22 11:11:22 +01:00
parent 35d4baa913
commit c55922dac1

View File

@ -5057,8 +5057,13 @@ clutter_text_get_font_name (ClutterText *text)
* like: * like:
* *
* |[ * |[
* clutter_text_set_font_name (text, "Sans 10pt"); * // Set the font to the system's Sans, 10 points
* clutter_text_set_font_name (text, "Sans 10");
*
* // Set the font to the system's Serif, 16 pixels
* clutter_text_set_font_name (text, "Serif 16px"); * clutter_text_set_font_name (text, "Serif 16px");
*
* // Set the font to Helvetica, 10 points
* clutter_text_set_font_name (text, "Helvetica 10"); * clutter_text_set_font_name (text, "Helvetica 10");
* ]| * ]|
* *