MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / constructor

Function constructor

packages/core/ui/styling/font-common.ts:22–33  ·  view source on GitHub ↗
(
		public readonly fontFamily: string,
		public readonly fontSize: number,
		fontStyle?: FontStyleType,
		fontWeight?: FontWeightType,
		fontScale?: number,
		public readonly fontVariationSettings?: Array<FontVariationSettingsType>,
	)

Source from the content-addressed store, hash-verified

20 }
21
22 protected constructor(
23 public readonly fontFamily: string,
24 public readonly fontSize: number,
25 fontStyle?: FontStyleType,
26 fontWeight?: FontWeightType,
27 fontScale?: number,
28 public readonly fontVariationSettings?: Array<FontVariationSettingsType>,
29 ) {
30 this.fontStyle = fontStyle ?? FontStyle.NORMAL;
31 this.fontWeight = fontWeight ?? FontWeight.NORMAL;
32 this.fontScale = fontScale ?? 1;
33 }
34
35 public abstract getAndroidTypeface(): any; /* android.graphics.Typeface */
36 public abstract getUIFont(defaultFont: any /* UIFont */): any; /* UIFont */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected