summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2014-09-22 11:11:22 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2014-09-22 11:30:52 +0100
commitc55922dac18cd3548b432439948a5eab64ca4036 (patch)
tree8093f83d1a6f7636c8930b3b623c2520d7cf1093
parent35d4baa913e142f22a2527e1b132e06fbec49306 (diff)
downloadclutter-c55922dac18cd3548b432439948a5eab64ca4036.tar.gz
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
-rw-r--r--clutter/clutter-text.c7
1 files changed, 6 insertions, 1 deletions
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");
* ]|
*