Files
font/packages/zen/dist/sans-non-variable.js
zeekay 74071ce324 font: the export is the family name, and the whole surface is generated
The sans binding was `ZenSans`, naming a family this package has never shipped —
the name table says `Zen`, `zen.css` declares `Zen`, and every stylesheet asks
for `Zen`. An identifier that disagrees with the family it binds is the one a
reader trusts and gets wrong, so it is `Zen`.

The rest of it is why that was possible. Five files in dist were generated from
one table and four beside them were written by hand, and the hand-written ones
had already drifted: dist/sans.js carried NO fallback stack while dist/mono.js
carried the full one, so a page waiting on the variable sans fell through to the
browser's default rather than the declared stack; and font.d.ts described
"Zen Sans", "ZenSansNonVariable" and a set of deprecations inherited from the
package this was forked from.

scripts/next.mjs now writes every entry point, every .d.ts, and zen.css from the
same FAMILY/PIXEL/FALLBACK tables it already used for the weight ladder. Running
it twice changes nothing.
2026-08-28 08:13:22 -07:00

109 lines
2.2 KiB
JavaScript

// Generated by scripts/next.mjs. Do not edit.
import localFont from "next/font/local";
export const Zen = localFont({
src: [
{
path: "./fonts/zen-sans/Zen-Thin.woff2",
weight: "100",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-ThinItalic.woff2",
weight: "100",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-ExtraLight.woff2",
weight: "200",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-ExtraLightItalic.woff2",
weight: "200",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-Light.woff2",
weight: "300",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-LightItalic.woff2",
weight: "300",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-Regular.woff2",
weight: "400",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-Italic.woff2",
weight: "400",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-Medium.woff2",
weight: "500",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-MediumItalic.woff2",
weight: "500",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-SemiBold.woff2",
weight: "600",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-SemiBoldItalic.woff2",
weight: "600",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-Bold.woff2",
weight: "700",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-BoldItalic.woff2",
weight: "700",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-ExtraBold.woff2",
weight: "800",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-ExtraBoldItalic.woff2",
weight: "800",
style: "italic",
},
{
path: "./fonts/zen-sans/Zen-Black.woff2",
weight: "900",
style: "normal",
},
{
path: "./fonts/zen-sans/Zen-BlackItalic.woff2",
weight: "900",
style: "italic",
},
],
variable: "--font-zen-sans",
fallback: [
"ui-sans-serif",
"system-ui",
"-apple-system",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"sans-serif",
],
});