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

Method constructor

packages/core/ui/styling/font.ios.ts:72–74  ·  view source on GitHub ↗
(family: string, size: number, style?: FontStyleType, weight?: FontWeightType, scale?: number, variationSettings?: Array<FontVariationSettingsType>)

Source from the content-addressed store, hash-verified

70 static default = new Font(undefined, undefined);
71
72 constructor(family: string, size: number, style?: FontStyleType, weight?: FontWeightType, scale?: number, variationSettings?: Array<FontVariationSettingsType>) {
73 super(family, size, style, weight, scale, variationSettings);
74 }
75
76 public withFontFamily(family: string): Font {
77 return new Font(family, this.fontSize, this.fontStyle, this.fontWeight, this.fontScale, this.fontVariationSettings);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected