UNPKG

cn-font-split

Version:

划时代的字体切割工具,CJK与任何字符!支持 otf、ttf、woff2 字体多线程切割,完美地细颗粒度地进行包大小控制。A revolutionary font subetter that supports CJK and any characters! It enables multi-threaded subset of otf, ttf, and woff2 fonts, allowing for precise control over package size.

34 lines (33 loc) 804 B
const r = (n, l, a) => ({ android: { arm64: null, arm: null }, win32: { x64: "x86_64-pc-windows-msvc", arm64: "aarch64-pc-windows-msvc" }, darwin: { x64: "x86_64-apple-darwin", arm64: "aarch64-apple-darwin" }, freebsd: { x64: "x86_64-unknown-freebsd" }, linux: { x64: a() ? null : "x86_64-unknown-linux-gnu", arm64: a() ? null : "aarch64-unknown-linux-gnu", arm: null, riscv64: a() ? null : "riscv64gc-unknown-linux-gnu", s390x: "s390x-unknown-linux-gnu" } })?.[n]?.[l] ?? "wasm32-wasip1"; function u(n) { const l = n.includes("windows") ? "dll" : n.includes("darwin") ? "dylib" : n.includes("wasm") ? "wasm" : "so"; return `libffi-${n}.${l}`; } export { u as getBinName, r as matchPlatform }; //# sourceMappingURL=load.mjs.map