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.
17 lines (16 loc) • 763 B
JavaScript
import { createAPI as a } from "./createAPI.mjs";
import { decodeReporter as f } from "./decodeReporter.mjs";
import { api_interface as s } from "./gen/index.mjs";
const o = async () => {
let t = null;
return typeof globalThis.Bun < "u" ? (console.log("cn-font-split using Bun Native FFI"), t = (await import("./bun/index.mjs")).fontSplit) : typeof globalThis.Deno < "u" ? (console.log("cn-font-split using Deno Native FFI"), t = (await import("./deno/index.mjs")).fontSplit) : (console.log("cn-font-split using Node FFI"), t = (await import("./node/index.mjs")).fontSplit), t;
}, e = o();
let n = async (t) => (await e)(t);
export {
a as createAPI,
f as decodeReporter,
n as default,
n as fontSplit,
s as proto
};
//# sourceMappingURL=auto.mjs.map