mirror of
https://github.com/hanzoai/font.git
synced 2026-11-02 23:42:52 +00:00
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.
98 lines
2.0 KiB
JavaScript
98 lines
2.0 KiB
JavaScript
// Generated by scripts/next.mjs. Do not edit.
|
|
import localFont from "next/font/local";
|
|
|
|
export const ZenPixelCircle = localFont({
|
|
src: "./fonts/zen-pixel/ZenPixel-Circle.woff2",
|
|
variable: "--font-zen-pixel-circle",
|
|
weight: "500",
|
|
fallback: [
|
|
"Zen Mono",
|
|
"ui-monospace",
|
|
"SFMono-Regular",
|
|
"Roboto Mono",
|
|
"Menlo",
|
|
"Monaco",
|
|
"Liberation Mono",
|
|
"DejaVu Sans Mono",
|
|
"Courier New",
|
|
"monospace",
|
|
],
|
|
adjustFontFallback: false,
|
|
});
|
|
|
|
export const ZenPixelGrid = localFont({
|
|
src: "./fonts/zen-pixel/ZenPixel-Grid.woff2",
|
|
variable: "--font-zen-pixel-grid",
|
|
weight: "500",
|
|
fallback: [
|
|
"Zen Mono",
|
|
"ui-monospace",
|
|
"SFMono-Regular",
|
|
"Roboto Mono",
|
|
"Menlo",
|
|
"Monaco",
|
|
"Liberation Mono",
|
|
"DejaVu Sans Mono",
|
|
"Courier New",
|
|
"monospace",
|
|
],
|
|
adjustFontFallback: false,
|
|
});
|
|
|
|
export const ZenPixelLine = localFont({
|
|
src: "./fonts/zen-pixel/ZenPixel-Line.woff2",
|
|
variable: "--font-zen-pixel-line",
|
|
weight: "500",
|
|
fallback: [
|
|
"Zen Mono",
|
|
"ui-monospace",
|
|
"SFMono-Regular",
|
|
"Roboto Mono",
|
|
"Menlo",
|
|
"Monaco",
|
|
"Liberation Mono",
|
|
"DejaVu Sans Mono",
|
|
"Courier New",
|
|
"monospace",
|
|
],
|
|
adjustFontFallback: false,
|
|
});
|
|
|
|
export const ZenPixelSquare = localFont({
|
|
src: "./fonts/zen-pixel/ZenPixel-Square.woff2",
|
|
variable: "--font-zen-pixel-square",
|
|
weight: "500",
|
|
fallback: [
|
|
"Zen Mono",
|
|
"ui-monospace",
|
|
"SFMono-Regular",
|
|
"Roboto Mono",
|
|
"Menlo",
|
|
"Monaco",
|
|
"Liberation Mono",
|
|
"DejaVu Sans Mono",
|
|
"Courier New",
|
|
"monospace",
|
|
],
|
|
adjustFontFallback: false,
|
|
});
|
|
|
|
export const ZenPixelTriangle = localFont({
|
|
src: "./fonts/zen-pixel/ZenPixel-Triangle.woff2",
|
|
variable: "--font-zen-pixel-triangle",
|
|
weight: "500",
|
|
fallback: [
|
|
"Zen Mono",
|
|
"ui-monospace",
|
|
"SFMono-Regular",
|
|
"Roboto Mono",
|
|
"Menlo",
|
|
"Monaco",
|
|
"Liberation Mono",
|
|
"DejaVu Sans Mono",
|
|
"Courier New",
|
|
"monospace",
|
|
],
|
|
adjustFontFallback: false,
|
|
});
|