@capsizecss/unpack
Advanced tools
Comparing version 0.0.0-add-language-support-v2-20231129052138 to 0.0.0-add-subset-support-20240304043732
{ | ||
"name": "@capsizecss/unpack", | ||
"version": "0.0.0-add-language-support-v2-20231129052138", | ||
"version": "0.0.0-add-subset-support-20240304043732", | ||
"description": "Unpack capsize font metrics from fonts", | ||
"main": "dist/capsizecss-unpack.cjs.js", | ||
"module": "dist/capsizecss-unpack.esm.js", | ||
"browser": { | ||
"./dist/capsizecss-unpack.cjs.js": "./dist/capsizecss-unpack.browser.cjs.js", | ||
"./dist/capsizecss-unpack.esm.js": "./dist/capsizecss-unpack.browser.esm.js" | ||
}, | ||
"preconstruct": { | ||
"entrypoints": [ | ||
"index.ts" | ||
] | ||
}, | ||
"files": [ | ||
"/dist" | ||
], | ||
"author": { | ||
"name": "Michael Taranto", | ||
"homepage": "https://github.com/michaeltaranto" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/seek-oss/capsize.git", | ||
"directory": "packages/unpack" | ||
}, | ||
"keywords": [ | ||
@@ -39,8 +16,33 @@ "capsize", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/seek-oss/capsize.git", | ||
"directory": "packages/unpack" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Michael Taranto", | ||
"homepage": "https://github.com/michaeltaranto" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": { | ||
"import": "./dist/index.d.mts", | ||
"require": "./dist/index.d.ts" | ||
}, | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"blob-to-buffer": "^1.2.8", | ||
"cross-fetch": "^3.0.4", | ||
"fontkit": "^2.0.2", | ||
"sort-keys": "^5.0.0" | ||
"fontkit": "^2.0.2" | ||
}, | ||
@@ -50,9 +52,13 @@ "devDependencies": { | ||
"@types/fontkit": "^2.0.1", | ||
"@types/node": "^16.18.2", | ||
"tsx": "^4.1.2", | ||
"typescript": "^4.8.4" | ||
"@types/node": "^20.11.13", | ||
"fast-xml-parser": "^4.3.2", | ||
"sort-keys": "^5.0.0", | ||
"tsx": "^4.7.0", | ||
"typescript": "^5.3.3" | ||
}, | ||
"scripts": { | ||
"build": "tsx scripts/build-weightings" | ||
"build": "crackle package", | ||
"dev": "crackle dev --shim=none", | ||
"generate": "tsx scripts/generate-weightings" | ||
} | ||
} |
@@ -48,13 +48,18 @@ <img src="https://raw.githubusercontent.com/seek-oss/capsize/HEAD/images/capsize-header.png" alt="Capsize" title="Capsize" width="443px" /> | ||
| Property | Type | Description | | ||
| ---------- | ------ | ----------------------------------------------------------------------------------------------------------------- | | ||
| familyName | string | The font family name as authored by font creator | | ||
| capHeight | number | The height of capital letters above the baseline | | ||
| ascent | number | The height of the ascenders above baseline | | ||
| descent | number | The descent of the descenders below baseline | | ||
| lineGap | number | The amount of space included between lines | | ||
| unitsPerEm | number | The size of the font’s internal coordinate grid | | ||
| xHeight | number | The height of the main body of lower case letters above baseline | | ||
| xWidthAvg | number | The average width of lowercase characters. Currently derived from latin character frequencies in English language | | ||
| Property | Type | Description | | ||
| ---------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| familyName | string | The font family name as authored by font creator | | ||
| category | string | The style of the font: serif, sans-serif, monospace, display, or handwriting. | | ||
| capHeight | number | The height of capital letters above the baseline | | ||
| ascent | number | The height of the ascenders above baseline | | ||
| descent | number | The descent of the descenders below baseline | | ||
| lineGap | number | The amount of space included between lines | | ||
| unitsPerEm | number | The size of the font’s internal coordinate grid | | ||
| xHeight | number | The height of the main body of lower case letters above baseline | | ||
| xWidthAvg | number | The average width of character glyphs in the font for the selected unicode subset. Calculated [based on character frequencies in written text], falling back to the built in `xAvgCharWidth` from the OS/2 table. | | ||
| subsets | {<br/>[subset]: { xWidthAvg: number }<br/>} | A lookup of the `xWidthAvg` metric by subset (see [supported subsets]) | | ||
[based on character frequencies in written text]: ../metrics/README.md#how-xwidthavg-is-calculated | ||
[supported subsets]: ../metrics/README.md#subsets | ||
## Thanks | ||
@@ -61,0 +66,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
3
72
0
3
24748
7
7
644
- Removedsort-keys@^5.0.0
- Removedis-plain-obj@4.1.0(transitive)
- Removedsort-keys@5.1.0(transitive)