MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getUIFont

Method getUIFont

packages/core/ui/styling/font.ios.ts:100–110  ·  view source on GitHub ↗
(defaultFont: UIFont)

Source from the content-addressed store, hash-verified

98 }
99
100 getUIFont(defaultFont: UIFont): UIFont {
101 return getUIFontCached({
102 fontFamily: parseFontFamily(this.fontFamily),
103 // Apply a11y scale and calculate proper font size (avoid applying multiplier to native point size as it's messing calculations)
104 fontSize: this.fontSize ? this.fontSize * this.fontScale : defaultFont.pointSize,
105 fontWeight: getNativeFontWeight(this.fontWeight),
106 fontVariationSettings: this.fontVariationSettings,
107 isBold: this.isBold,
108 isItalic: this.isItalic,
109 });
110 }
111
112 getAndroidTypeface(): any {
113 return undefined;

Calls 3

parseFontFamilyFunction · 0.90
getUIFontCachedFunction · 0.85
getNativeFontWeightFunction · 0.85

Tested by

no test coverage detected