From c55922dac18cd3548b432439948a5eab64ca4036 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 22 Sep 2014 11:11:22 +0100 Subject: [PATCH] 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 --- clutter/clutter-text.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index bb4b3643d..dad50edbb 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -5057,8 +5057,13 @@ clutter_text_get_font_name (ClutterText *text) * 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"); + * + * // Set the font to Helvetica, 10 points * clutter_text_set_font_name (text, "Helvetica 10"); * ]| *