Constructors
constructor
- new Font(name, params?): Font
Parameters
- name: string
Optional
params: {
size?: number;
style?: FontStyle;
}Optional
size?: number
Optional
style?: FontStyle
Accessors
name
- get name(): string
Returns string
size
- get size(): number
Returns number
style
- get style(): FontStyle
Returns FontStyle
Methods
Static
fromJson
- fromJson(jsonObject?): Font
Font family.
Beware that Android and iOS have diffrent font names, so you will have to use if condition.