Use new typst rendering in /test endpoint

This commit is contained in:
Joscha 2025-02-28 23:10:31 +01:00
parent 8526566f39
commit 428b825e43
15 changed files with 128 additions and 14 deletions

View file

@ -0,0 +1,21 @@
#let init(it) = {
set page(
width: 384pt,
height: auto,
margin: (x: 0pt, y: 4pt),
)
set text(
font: ("Unifont", "Unifont-JP", "Unifont Upper"),
size: 16pt,
fallback: false,
)
set par(
leading: 8pt, // Between lines
spacing: 26pt, // Between paragraphs
)
it
}
// Determined by experiments so that the top and bottom white border are roughly
// the same size after tearing off the paper.
#let feed = v(64pt + 32pt)