43 lines
2.0 KiB
Typst
43 lines
2.0 KiB
Typst
#let fonts = (
|
|
(src: "/font/Minecraft-Seven_v2.woff2", name: "Mojangles", style: "normal", weight: 400),
|
|
(src: "/font/LibertinusKeyboard-Regular.woff2", name: "Libertinus Keyboard", style: "normal", weight: 400),
|
|
(src: "/font/LibertinusMath-Regular.woff2", name: "Libertinus Math", style: "normal", weight: 400),
|
|
(src: "/font/LibertinusMono-Regular.woff2", name: "Libertinus Mono", style: "normal", weight: 400),
|
|
(src: "/font/LibertinusSans-Bold.woff2", name: "Libertinus Sans", style: "normal", weight: 700),
|
|
(src: "/font/LibertinusSans-Italic.woff2", name: "Libertinus Sans", style: "italic", weight: 400),
|
|
(src: "/font/LibertinusSans-Regular.woff2", name: "Libertinus Sans", style: "normal", weight: 400),
|
|
(src: "/font/LibertinusSerif-Bold.woff2", name: "Libertinus Serif", style: "normal", weight: 700),
|
|
(src: "/font/LibertinusSerif-BoldItalic.woff2", name: "Libertinus Serif", style: "italic", weight: 700),
|
|
(src: "/font/LibertinusSerif-Italic.woff2", name: "Libertinus Serif", style: "italic", weight: 400),
|
|
(src: "/font/LibertinusSerif-Regular.woff2", name: "Libertinus Serif", style: "normal", weight: 400),
|
|
(src: "/font/LibertinusSerif-Semibold.woff2", name: "Libertinus Serif", style: "normal", weight: 600),
|
|
(src: "/font/LibertinusSerif-SemiboldItalic.woff2", name: "Libertinus Serif", style: "italic", weight: 600),
|
|
(src: "/font/LibertinusSerifDisplay-Regular.woff2", name: "Libertinus Display", style: "normal", weight: 400),
|
|
(src: "/font/LibertinusSerifInitials-Regular.woff2", name: "Libertinus Initials", style: "normal", weight: 400),
|
|
)
|
|
|
|
#asset(
|
|
"font.css",
|
|
fonts
|
|
.map(it => {
|
|
"@font-face{"
|
|
"font-family:" + repr(it.name) + ";"
|
|
"font-style:" + str(it.style) + ";"
|
|
"font-weight:" + str(it.weight) + ";"
|
|
"src: url(" + repr(it.src) + ");"
|
|
"}"
|
|
})
|
|
.join(" "),
|
|
)
|
|
|
|
#asset("./style.css", read("style.css", encoding: none))
|
|
|
|
#for font in fonts {
|
|
asset(font.src, read("." + font.src, encoding: none))
|
|
}
|
|
|
|
#let stylesheets = (
|
|
"/font.css",
|
|
"/style.css",
|
|
)
|