@capsizecss/unpack
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -149,2 +149,4 @@ import { Font as Font$1 } from 'fontkit'; | ||
familyName: string; | ||
fullName: string; | ||
postscriptName: string; | ||
capHeight: number; | ||
@@ -151,0 +153,0 @@ ascent: number; |
{ | ||
"name": "@capsizecss/unpack", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Unpack capsize font metrics from fonts", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -48,14 +48,16 @@ <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 | | ||
| 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]) | | ||
| Property | Type | Description | | ||
| -------------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| familyName | string | The font’s family name as authored by font creator | | ||
| fullName | string | The font’s full name as authored by font creator | | ||
| postscriptName | string | The font’s unique PostScript 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]) | | ||
@@ -62,0 +64,0 @@ [based on character frequencies in written text]: ../metrics/README.md#how-xwidthavg-is-calculated |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
25480
651
74