MCPcopy
hub / github.com/baidu/amis / checkFont

Function checkFont

packages/office-viewer/src/excel/render/cell/checkFont.ts:8–15  ·  view source on GitHub ↗
(font: string)

Source from the content-addressed store, hash-verified

6 * 检查字体是否存在,这里主要是为了加缓存和 warning
7 */
8export function checkFont(font: string) {
9 if (FontAvailableCache.has(font)) {
10 return FontAvailableCache.get(font);
11 }
12 const result = isFontAvailable(font);
13 FontAvailableCache.set(font, result);
14 return result;
15}
16
17/**
18 * 获取所有不可用的字体

Callers 1

genFontStrFunction · 0.90

Calls 3

hasMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected