[clutter/clutter-1.20] docs: Fix the examples for ClutterText.set_font_name()



commit c55922dac18cd3548b432439948a5eab64ca4036
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Sep 22 11:11:22 2014 +0100

    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 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c
index bb4b364..dad50ed 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");
  * ]|
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]