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.
11 lines (10 loc) • 749 B
JavaScript
import { api_interface as e } from "./gen/index.mjs";
import { decodeReporter as t } from "./decodeReporter.mjs";
import { createAPI as n } from "./createAPI.mjs";
var r = (async () => {
let e = null;
return globalThis.Bun === void 0 ? globalThis.Deno === void 0 ? (console.log("cn-font-split using Node FFI"), e = (await import("./node/index.mjs")).fontSplit) : (console.log("cn-font-split using Deno Native FFI"), e = (await import("./deno/index.mjs")).fontSplit) : (console.log("cn-font-split using Bun Native FFI"), e = (await import("./bun/index.mjs")).fontSplit), e;
})(), i = async (e) => (await r)(e);
//#endregion
export { n as createAPI, t as decodeReporter, i as default, i as fontSplit, e as proto };
//# sourceMappingURL=auto.mjs.map