FONT Property Type
The font property enables font configuration for text based components such as label or textfield.
"font": {
"size": "large",
"monospaced": "digits",
"weight": "bold"
}
Properties
- size
- ENUM
- Default: "default"
Set the size of the text.
| Value | Description |
|---|---|
size-px |
Specify the size in pixels e.g. 24. |
"default" |
Use the system default font size. |
"hairline" |
Use a hairline font size. |
"extrasmall" |
Use a extrasmall font size. |
"small" |
Use a small font size. |
"medium" |
Use a medium font size. |
"large" |
Use a large font size. |
"extralarge" |
Use a extralarge font size. |
"ginormous" |
Use a ginormous font size. |
- monospaced
- BOOL | "digits"
- Default:
false
Set the font monospacing.
| Value | Description |
|---|---|
true |
Use the system monospace font. |
false |
Use the system font. |
"digits" |
Use the system font with monospaced digits. |
- weight
- ENUM
- Default:
"regular"
Set the weight of the font.
| Value | Description |
|---|---|
"ultralight" |
Ultra-light font, equivalent to NSFontWeightUltraLight. |
"thin" |
Thin font, equivalent to NSFontWeightThin. |
"light" |
Light font, equivalent to NSFontWeightLight. |
"regular" |
Regular font, equivalent to NSFontWeightRegular. |
"medium" |
Medium font, equivalent to NSFontWeightMedium. |
"semibold" |
Semi-bold font, equivalent to NSFontWeightSemibold. |
"bold" |
Bold font, equivalent to NSFontWeightBold. |
"heavy" |
Heavy font, equivalent to NSFontWeightHeavy. |
"black" |
Black font, equivalent to NSFontWeightBlack. |
- width
- ENUM
- Default:
"standard"
Set the width of the font, only applicable with non-monospaced option.
| Value | Description |
|---|---|
"compressed" |
Compressed width, equivalent to NSFontWidthCompressed. |
"condensed" |
Condensed width, equivalent to NSFontWidthCondensed. |
"standard" |
Standard width, equivalent to NSFontWidthStandard. |
"expanded" |
Expanded width, equivalent to NSFontWidthExpanded. |