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

Method withFontStyle

packages/core/ui/styling/font.ios.ts:80–82  ·  view source on GitHub ↗
(style: FontStyleType)

Source from the content-addressed store, hash-verified

78 }
79
80 public withFontStyle(style: FontStyleType): Font {
81 return new Font(this.fontFamily, this.fontSize, style, this.fontWeight, this.fontScale, this.fontVariationSettings);
82 }
83
84 public withFontWeight(weight: FontWeightType): Font {
85 return new Font(this.fontFamily, this.fontSize, this.fontStyle, weight, this.fontScale, this.fontVariationSettings);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected