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

Method withFontWeight

packages/core/ui/styling/font.ios.ts:84–86  ·  view source on GitHub ↗
(weight: FontWeightType)

Source from the content-addressed store, hash-verified

82 }
83
84 public withFontWeight(weight: FontWeightType): Font {
85 return new Font(this.fontFamily, this.fontSize, this.fontStyle, weight, this.fontScale, this.fontVariationSettings);
86 }
87
88 public withFontSize(size: number): Font {
89 return new Font(this.fontFamily, size, this.fontStyle, this.fontWeight, this.fontScale, this.fontVariationSettings);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected