# Text Style The attributes described in this topic are used to set the text style for a component that contains text.
Text size. If the value is of the number type, the unit fp is used. |
|||
number | FontWeight |
Font weight. For the number type, the value ranges from 100 to 900, at an interval of 100. The default value is 400. A larger value indicates a larger font weight. For details on the common enumerated values, see FontWeight enums. |
||
Font family of the text. Use commas (,) to separate multiple fonts. The priority the fonts is the sequence in which they are placed. An example value is Arial, sans-serif. |