Socket
Socket
Sign inDemoInstall

@capsizecss/unpack

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capsizecss/unpack - npm Package Compare versions

Comparing version 0.0.0-add-language-support-v2-20231129052138 to 0.0.0-add-subset-support-20240304043732

dist/index.cjs

66

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc