1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/programs/adit/src/assets.hb
2025-02-19 03:48:16 -06:00

15 lines
276 B
Plaintext

render := @use("lib:render")
psf := @embed("sysdata:assets/consolefonts/tamsyn/10x20r.psf")
Assets := struct {
font: render.text.Font,
new := fn(): Self {
font := render.text.font_from_psf2(@bitcast(&psf), false)
if font == null {
die
}
return Self.(font)
}
}