Sets the font used by a Text.
The font_name
string must either be null
, which means that the font name from the default
Backend will be used; or be something that can be parsed by the
font_description_from_string function, like:
// 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");
this |
a Text |
font_name |
a font name, or |