forked from AbleOS/ableos
15 lines
276 B
Plaintext
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)
|
|
}
|
|
} |