Class
Font
Font
Summary
Constructors
Constructors
constructor
new Font(family: string, size: number, style?: FontStyle, weight?: FontWeight, scale?: number): Font
defined in @nativescript/core/ui/styling/font.d.ts:13:1
| Parameter | Default | Description |
family | | string |
size | | number |
style | | |
weight | | |
scale | | number |
Returns Font
Properties
fontFamily
defined in @nativescript/core/ui/styling/font.d.ts:4:8
fontScale
defined in @nativescript/core/ui/styling/font.d.ts:8:8
fontSize
defined in @nativescript/core/ui/styling/font.d.ts:7:8
fontStyle
fontStyle: FontStyle
defined in @nativescript/core/ui/styling/font.d.ts:5:8
fontWeight
fontWeight: FontWeight
defined in @nativescript/core/ui/styling/font.d.ts:6:8
isBold
defined in @nativescript/core/ui/styling/font.d.ts:10:8
isItalic
defined in @nativescript/core/ui/styling/font.d.ts:11:8
default
Static
default: Font
defined in @nativescript/core/ui/styling/font.d.ts:2:15
Methods
getAndroidTypeface
defined in @nativescript/core/ui/styling/font.d.ts:15:1
Returns any
getUIFont
defined in @nativescript/core/ui/styling/font.d.ts:16:1
| Parameter | Default | Description |
defaultFont | | any |
Returns any
withFontFamily
withFontFamily(family: string): Font
defined in @nativescript/core/ui/styling/font.d.ts:18:1
| Parameter | Default | Description |
family | | string |
Returns Font
withFontScale
withFontScale(scale: number): Font
defined in @nativescript/core/ui/styling/font.d.ts:22:1
| Parameter | Default | Description |
scale | | number |
Returns Font
withFontSize
withFontSize(size: number): Font
defined in @nativescript/core/ui/styling/font.d.ts:21:1
| Parameter | Default | Description |
size | | number |
Returns Font
withFontStyle
withFontStyle(style: string): Font
defined in @nativescript/core/ui/styling/font.d.ts:19:1
| Parameter | Default | Description |
style | | string |
Returns Font
withFontWeight
withFontWeight(weight: string): Font
defined in @nativescript/core/ui/styling/font.d.ts:20:1
| Parameter | Default | Description |
weight | | string |
Returns Font
equals
Static
defined in @nativescript/core/ui/styling/font.d.ts:24:1
Returns boolean
- Previous
- Folder
- Next
- FormattedString