Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages. 
Classes
Font
Font
Font
Summary 
Constructors
Constructors 
constructor 
new Font(family: string, size: number, style?: FontStyleType, weight?: FontWeightType, scale?: number, fontVariationSettings?: FontVariationSettings[]): Font
 defined in @nativescript/core/ui/styling/font.d.ts:17:1
| Parameter | Default | Description | 
family |  | string | 
size |  | number | 
style |  | FontStyleType | 
weight |  | FontWeightType | 
scale |  | number | 
fontVariationSettings |  | FontVariationSettings[] | 
 Returns Font
Properties 
fontFamily 
 defined in @nativescript/core/ui/styling/font.d.ts:7:8
fontScale 
 defined in @nativescript/core/ui/styling/font.d.ts:11:8
fontSize 
 defined in @nativescript/core/ui/styling/font.d.ts:10:8
fontStyle 
 defined in @nativescript/core/ui/styling/font.d.ts:8:8
fontVariationSettings 
 defined in @nativescript/core/ui/styling/font.d.ts:12:8
fontWeight 
 defined in @nativescript/core/ui/styling/font.d.ts:9:8
isBold 
 defined in @nativescript/core/ui/styling/font.d.ts:14:8
isItalic 
 defined in @nativescript/core/ui/styling/font.d.ts:15:8
default 
Static
default: Font
 defined in @nativescript/core/ui/styling/font.d.ts:5:15
Methods 
getAndroidTypeface 
 defined in @nativescript/core/ui/styling/font.d.ts:19:1
 Returns any
getUIFont 
 defined in @nativescript/core/ui/styling/font.d.ts:20:1
| Parameter | Default | Description | 
defaultFont |  | any | 
 Returns any
withFontFamily 
withFontFamily(family: string): Font
 defined in @nativescript/core/ui/styling/font.d.ts:22:1
| Parameter | Default | Description | 
family |  | string | 
 Returns Font
withFontScale 
withFontScale(scale: number): Font
 defined in @nativescript/core/ui/styling/font.d.ts:26:1
| Parameter | Default | Description | 
scale |  | number | 
 Returns Font
withFontSize 
withFontSize(size: number): Font
 defined in @nativescript/core/ui/styling/font.d.ts:25:1
| Parameter | Default | Description | 
size |  | number | 
 Returns Font
withFontStyle 
withFontStyle(style: FontStyleType): Font
 defined in @nativescript/core/ui/styling/font.d.ts:23:1
| Parameter | Default | Description | 
style |  | FontStyleType | 
 Returns Font
withFontVariationSettings 
withFontVariationSettings(variationSettings: FontVariationSettings[]): Font
 defined in @nativescript/core/ui/styling/font.d.ts:27:1
| Parameter | Default | Description | 
variationSettings |  | FontVariationSettings[] | 
 Returns Font
withFontWeight 
withFontWeight(weight: FontWeightType): Font
 defined in @nativescript/core/ui/styling/font.d.ts:24:1
| Parameter | Default | Description | 
weight |  | FontWeightType | 
 Returns Font
- Previous
 - Folder
 - Next
 - FormattedString