autokerning
Version:
autokerning computes suggested kerning values for glyph pairs from TrueType/OpenType fonts by rendering glyph bitmaps, applying a small Gaussian blur, and measuring pixel overlap across horizontal offsets. It can be used programmatically (as an imported E
55 lines (54 loc) • 1.1 kB
JSON
{
"name": "autokerning",
"version": "1.1.0",
"author": "wernersbacher <wernersbacher@gmail.com>",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./cli": {
"import": "./dist/cli.js",
"default": "./dist/cli.js"
}
},
"scripts": {
"build": "tsc",
"prepack": "npm run build",
"start": "node dist/cli.js",
"dev": "tsx src/cli.ts",
"test": "vitest run"
},
"repository": {
"type": "git",
"url": "https://github.com/wernersbacher/autokerning"
},
"keywords": [
"kerning",
"autokern",
"font",
"glyph"
],
"devDependencies": {
"@types/ndarray": "^1.0.14",
"@types/node": "^22.0.0",
"@types/opentype.js": "^1.3.8",
"typescript": "^5.9.3",
"vitest": "^4.0.8"
},
"dependencies": {
"canvas": "^3.2.0",
"commander": "^14.0.2",
"ndarray": "^1.0.19",
"opentype.js": "^1.3.4"
},
"files": [
"dist"
],
"bin": {
"autokerning": "dist/cli.js"
}
}