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

Method withFontScale

packages/core/ui/styling/font.ios.ts:92–94  ·  view source on GitHub ↗
(scale: number)

Source from the content-addressed store, hash-verified

90 }
91
92 public withFontScale(scale: number): Font {
93 return new Font(this.fontFamily, this.fontSize, this.fontStyle, this.fontWeight, scale, this.fontVariationSettings);
94 }
95
96 public withFontVariationSettings(variationSettings: Array<FontVariationSettingsType> | null): Font {
97 return new Font(this.fontFamily, this.fontSize, this.fontStyle, this.fontWeight, this.fontScale, variationSettings);

Calls

no outgoing calls

Tested by

no test coverage detected