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

Function parseFontFamily

packages/core/ui/styling/font-common.ts:131–140  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

129}
130
131export function parseFontFamily(value: string): Array<string> {
132 if (!value) {
133 return [];
134 }
135
136 return value
137 .split(',')
138 .map((v) => (v || '').trim().replace(/['"]+/g, ''))
139 .filter((v) => !!v);
140}
141
142export function isFontWeightBold(fontWeight: FontWeightType): boolean {
143 return fontWeight === FontWeight.SEMI_BOLD || fontWeight === FontWeight.BOLD || fontWeight === '700' || fontWeight === FontWeight.EXTRA_BOLD || fontWeight === FontWeight.BLACK;

Callers 3

createTypefaceFunction · 0.90
createTypefaceLegacyFunction · 0.90
getUIFontMethod · 0.90

Calls 3

replaceMethod · 0.80
mapMethod · 0.65
filterMethod · 0.45

Tested by

no test coverage detected