Files
wireless-docs/static/index.typ
2026-06-18 17:03:52 -04:00

30 lines
677 B
Typst

#let fonts = (
(src: "/font/minecraft-seven-ascii.woff2", name: "Mojangles", style: "normal", weight: 400, unicodes: "U+0000-007F"),
)
#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) + ");"
if ("unicodes" in it) { "unicode-range: " + str(it.unicodes) + ";" }
"}"
})
.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",
)