mirror of
https://github.com/hanzoai/font.git
synced 2026-11-02 23:42:52 +00:00
The package renamed two files on the way in — ExtraLight became UltraLight and ExtraBold became UltraBlack — and the next/font wrappers were a hand-kept list against those names. In the scheme the names came from, Black is 800 and UltraBlack is 900; in this family Black IS 900. So font.js declared Zen-Black.woff2 at 800 and the file renamed from ExtraBold at 900, and a page asking for font-weight 900 was served the 800 cut, 800 the 900 one. Both mono and sans, every version so far. A file is now named for the face inside it, and the wrappers are generated from one weight ladder, so the name and the number cannot drift apart. The generator refuses to emit if a cut exists that the ladder does not name — a face nobody can ask for is the failure that has no other symptom. Italics come with it. The non-variable exports listed roman only, so an <em> on that path got a slanted copy of the roman rather than the drawn italic; all nine are there now, both families, 36 declarations checked against the weight and style each file reports for itself.
111 lines
2.4 KiB
JavaScript
111 lines
2.4 KiB
JavaScript
// Generated by scripts/next.mjs. Do not edit.
|
|
import localFont from "next/font/local";
|
|
|
|
export const ZenMono = localFont({
|
|
src: [
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-Thin.woff2",
|
|
weight: "100",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-ThinItalic.woff2",
|
|
weight: "100",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-ExtraLight.woff2",
|
|
weight: "200",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-ExtraLightItalic.woff2",
|
|
weight: "200",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-Light.woff2",
|
|
weight: "300",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-LightItalic.woff2",
|
|
weight: "300",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-Regular.woff2",
|
|
weight: "400",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-Italic.woff2",
|
|
weight: "400",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-Medium.woff2",
|
|
weight: "500",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-MediumItalic.woff2",
|
|
weight: "500",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-SemiBold.woff2",
|
|
weight: "600",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-SemiBoldItalic.woff2",
|
|
weight: "600",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-Bold.woff2",
|
|
weight: "700",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-BoldItalic.woff2",
|
|
weight: "700",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-ExtraBold.woff2",
|
|
weight: "800",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-ExtraBoldItalic.woff2",
|
|
weight: "800",
|
|
style: "italic",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-Black.woff2",
|
|
weight: "900",
|
|
style: "normal",
|
|
},
|
|
{
|
|
path: "./fonts/zen-mono/ZenMono-BlackItalic.woff2",
|
|
weight: "900",
|
|
style: "italic",
|
|
},
|
|
],
|
|
variable: "--font-zen-mono",
|
|
adjustFontFallback: false,
|
|
fallback: [
|
|
"ui-monospace",
|
|
"SFMono-Regular",
|
|
"Roboto Mono",
|
|
"Menlo",
|
|
"Monaco",
|
|
"Liberation Mono",
|
|
"DejaVu Sans Mono",
|
|
"Courier New",
|
|
"monospace",
|
|
],
|
|
});
|