Use new typst rendering in /test endpoint
This commit is contained in:
parent
8526566f39
commit
428b825e43
15 changed files with 128 additions and 14 deletions
21
showbits-thermal-printer/src/documents/lib.typ
Normal file
21
showbits-thermal-printer/src/documents/lib.typ
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue