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.

21 lines (20 loc) 770 B
export declare const matchPlatform: (platform: string, arch: string, isMusl: () => boolean) => string; export declare const getBinaryFile: (platform: string, version: string, proxy?: string) => Promise<ArrayBuffer>; interface Release { id: number; tag: string; author: string; name: string; draft: boolean; prerelease: boolean; createdAt: string; publishedAt: string; markdown: string; html: string; } /** 直接拿最后一个版本的信息 */ export declare const getLatestVersion: () => Promise<Release>; export declare const getVersionBinary: (v?: string) => Promise<Release | undefined>; export declare const getAllVersions: () => Promise<Release[]>; export declare function getBinName(platform: string): string; export {};