mirror of
https://github.com/hanzoai/font.git
synced 2026-11-02 23:42:52 +00:00
The presets carried what they were fitted against — a licensed text face, a licensed display one, and the residuals of each search. That is our own working metadata, not the licence, and it is not what a preset IS: book is the reading weight, medium the step up before display, wide is widened and weighted to hold the widening. Each now says that and nothing else, and the numbers a search produced stay out of the shipped data, the stylesheet comments, the types and the crate. A preset also stopped naming another brand's surface. One typeface serves several brands, and a page for one of them should read as though the others do not exist — so the five are described by what the setting does, and the page says which of them that brand uses. The prose was still the upstream project's: it credited another company's design team, pointed downloads at their releases, told you to `npm install zen`, and listed seven other foundries' typefaces under Inspiration. Every import path in font.d.ts declared module "zen/font", which is not this package's name, so the types matched nothing a consumer could write. LICENSE.txt is untouched. The copyright notice travels with each copy, and that is where a licence belongs.
35 lines
1.3 KiB
CSS
35 lines
1.3 KiB
CSS
/* Zen presets — generated by scripts/presets.mjs. Do not edit.
|
|
*
|
|
* import '@hanzo/font/css' the faces
|
|
* import '@hanzo/font/presets.css' these
|
|
*
|
|
* A preset sets weight, and where the voice needs it, tracking and a horizontal
|
|
* scale. Anything that scales is inline-block with a left origin, and its LAYOUT
|
|
* box stays the untransformed width — a transform does not reflow, so give
|
|
* .zen-wide room or clip its container.
|
|
*/
|
|
|
|
/* Thin display. Set large, tracked in. */
|
|
.zen-air{font-variation-settings:'wght' 220;letter-spacing:-0.03em}
|
|
|
|
/* Text. The reading weight. */
|
|
.zen-book{font-variation-settings:'wght' 497}
|
|
|
|
/* UI emphasis. A step up from book without becoming display. */
|
|
.zen-medium{font-variation-settings:'wght' 606}
|
|
|
|
/* Monumental caps. Widened, and weighted to hold the widening. */
|
|
.zen-wide{font-variation-settings:'wght' 650;letter-spacing:-0.095em;transform:scaleX(1.4861);transform-origin:left center;display:inline-block}
|
|
|
|
/* Heavy and friendly at large sizes. */
|
|
.zen-round{font-variation-settings:'wght' 900;letter-spacing:-0.018em}
|
|
|
|
:root{
|
|
--zen-air-wght:220;--zen-air-track:-0.03em;
|
|
--zen-book-wght:497;
|
|
--zen-medium-wght:606;
|
|
--zen-wide-wght:650;--zen-wide-track:-0.095em;--zen-wide-scale-x:1.4861;
|
|
--zen-round-wght:900;--zen-round-track:-0.018em;
|
|
--zen-xheight-factor:0.9321;
|
|
}
|