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.

60 lines 1.98 kB
{ "name": "cn-font-split", "version": "7.2.7", "description": "划时代的字体切割工具,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.", "main": "./dist/node/index.js", "module": "./dist/node/index.mjs", "browser": "./dist/wasm/index.mjs", "bin": { "cn-font-split": "./dist/cli.js" }, "publishConfig": { "registry": "https://registry.npmjs.org/", "access": "public" }, "repository": { "type": "git", "url": "https://github.com/KonghaYao/cn-font-split/tree/ts/packages/subsets" }, "homepage": "https://chinese-font.netlify.app/", "keywords": [ "font", "converter", "performance", "wasm", "woff2", "ttf", "otf", "opentype-fonts", "font-subsetter", "font-subset", "cjk" ], "author": "KonghaYao<dongzhongzhidong@qq.com>", "license": "Apache-2.0", "dependencies": { "buffer": "^6.0.3", "commander": "^12.1.0", "fs-extra": "^11.2.0", "google-protobuf": "^3.21.4", "koffi": "^2.10.0", "proto-to-cli": "1.2.1" }, "devDependencies": { "@grpc/grpc-js": "^1.12.2", "@tybys/wasm-util": "^0.9.0", "@types/google-protobuf": "^3.15.12", "@xan105/ffi": "^1.3.0", "base64-js": "^1.5.1", "ieee754": "^1.2.1", "memfs-browser": "^3.5.10302", "protobufjs": "^7.4.0", "protoc-gen-ts": "^0.8.7" }, "scripts": { "postinstall": "node ./dist/cli.js i default || node -v", "update-proto": "sh ./scripts/build_proto_ts.sh && proto-to-cli -i ../../crates/proto/src/index.proto -m InputTemplate -o ./src/gen/proto.ts && sh scripts/build_proto_ts.sh", "build": "pnpm update-proto && vite build && vite build -c vite.config.wasm.mts", "prepublish": "pnpm build" } }