label.SetProperty( TextLabel::Property::POINT_SIZE, 12.0f );
~~~
-~~~{.js}
-// JavaScript
-
-label.fontFamily = "FreeSerif";
-label.fontStyle = {
- "weight" : "bold",
- "slant" : "italic"
- };
-label.pointSize = 12;
-~~~
-
However the text control will fall-back to using the default font, if the requested font does not support the required scripts.
### Font Styles
label.SetProperty( Control::Property::STYLE_NAME, "custom" );
~~~
-~~~{.js}
- // JavaScript
-
- label.styleName = "customLabel"';
-~~~
-
~~~{.json}
{
"styles":