MCPcopy Create free account
hub / github.com/chart-kit/react-native-chart-kit-example / isUsableFont

Function isUsableFont

App.tsx:141–143  ·  view source on GitHub ↗
(font: PreviewSkiaFont | undefined)

Source from the content-addressed store, hash-verified

139 const fontsBySize = new Map<number, PreviewSkiaFont | undefined>();
140 const fontFamilies = previewSkiaFontFamilies;
141 const isUsableFont = (font: PreviewSkiaFont | undefined) => {
142 return Boolean(font);
143 };
144
145 return (options = {}) => {
146 const fontSize = options.fontSize ?? 12;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected