| title | Font |
|---|---|
| titleTemplate | title - API / NativeScript |
| contributors | false |
Defined in: ui/styling/font.d.ts:6
Font
new Font(
family: string,
size: number,
style?: FontStyleType,
weight?: FontWeightType,
scale?: number,
fontVariationSettings?: FontVariationSettings[]): Font;Defined in: ui/styling/font.d.ts:19
| Parameter | Type |
|---|---|
family |
string |
size |
number |
style? |
FontStyleType |
weight? |
FontWeightType |
scale? |
number |
fontVariationSettings? |
FontVariationSettings[] |
Font
FontBase.constructorfontFamily: string;Defined in: ui/styling/font.d.ts:9
FontBase.fontFamilyfontScale: number;Defined in: ui/styling/font.d.ts:13
FontBase.fontScalefontSize: number;Defined in: ui/styling/font.d.ts:12
FontBase.fontSizefontStyle: FontStyleType;Defined in: ui/styling/font.d.ts:10
FontBase.fontStyleoptional fontVariationSettings?: FontVariationSettingsType[];Defined in: ui/styling/font.d.ts:14
FontBase.fontVariationSettingsfontWeight: FontWeightType;Defined in: ui/styling/font.d.ts:11
FontBase.fontWeightisBold: boolean;Defined in: ui/styling/font.d.ts:16
FontBase.isBoldisItalic: boolean;Defined in: ui/styling/font.d.ts:17
FontBase.isItalicstatic default: Font;Defined in: ui/styling/font.d.ts:7
FontBase.defaultgetAndroidTypeface(): any;Defined in: ui/styling/font.d.ts:21
any
FontBase.getAndroidTypefacegetUIFont(defaultFont: any): any;Defined in: ui/styling/font.d.ts:22
| Parameter | Type |
|---|---|
defaultFont |
any |
any
FontBase.getUIFontwithFontFamily(family: string): Font;Defined in: ui/styling/font.d.ts:24
| Parameter | Type |
|---|---|
family |
string |
Font
FontBase.withFontFamilywithFontScale(scale: number): Font;Defined in: ui/styling/font.d.ts:28
| Parameter | Type |
|---|---|
scale |
number |
Font
FontBase.withFontScalewithFontSize(size: number): Font;Defined in: ui/styling/font.d.ts:27
| Parameter | Type |
|---|---|
size |
number |
Font
FontBase.withFontSizewithFontStyle(style: FontStyleType): Font;Defined in: ui/styling/font.d.ts:25
| Parameter | Type |
|---|---|
style |
FontStyleType |
Font
FontBase.withFontStylewithFontVariationSettings(variationSettings: FontVariationSettings[]): Font;Defined in: ui/styling/font.d.ts:29
| Parameter | Type |
|---|---|
variationSettings |
FontVariationSettings[] |
Font
FontBase.withFontVariationSettingswithFontWeight(weight: FontWeightType): Font;Defined in: ui/styling/font.d.ts:26
| Parameter | Type |
|---|---|
weight |
FontWeightType |
Font
FontBase.withFontWeightstatic equals(value1: Font, value2: Font): boolean;Defined in: ui/styling/font.d.ts:31
| Parameter | Type |
|---|---|
value1 |
Font |
value2 |
Font |
boolean
FontBase.equals