2024-10-26 03:23:28 -05:00
|
|
|
render := @use("../../../../libraries/render/src/lib.hb")
|
|
|
|
|
|
|
|
/* expected result:
|
2024-11-03 16:31:53 -06:00
|
|
|
extended unicode test */
|
2024-10-26 03:23:28 -05:00
|
|
|
|
|
|
|
psf := @embed("../../../../consolefonts/tamsyn/10x20r.psf")
|
|
|
|
|
|
|
|
example := fn(): void {
|
2024-11-03 16:31:53 -06:00
|
|
|
screen := render.init(false)
|
2024-10-26 03:23:28 -05:00
|
|
|
font := render.text.font_from_psf2(@bitcast(&psf))
|
2024-11-01 13:09:12 -05:00
|
|
|
|
2024-11-03 16:31:53 -06:00
|
|
|
str := "Extended unicode test:
|
|
|
|
|
|
|
|
ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
|
|
abcdefghijklmnopqrstuvwxyz
|
|
|
|
0123456789
|
|
|
|
!\"#$%&'()*+,-./:;<=>?@[]^_`{|}~
|
|
|
|
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞß
|
|
|
|
àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ
|
|
|
|
ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğ
|
|
|
|
ĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿ
|
|
|
|
„‟†‡•‣․‥…‧
|
|
|
|
₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₯₰₱₲₳₴₵₶₷₸₹₺₻₼₽₾₿
|
|
|
|
∀∁∂∃∄∅∆∇∈∉∊∋∌∍∎∏∐∑−∓∔∕∖∗∘∙√∛∜∝∞∟
|
|
|
|
─│┌┐└┘├┤┬┴┼╋╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿
|
|
|
|
▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕▖▗▘▙▚▛▜▝▞▟
|
|
|
|
■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱▲△▴▵▶▷▸▹►▻▼▽▾▿◀◁◂◃◄◅◆◇◈◉◊○
|
|
|
|
←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻
|
|
|
|
、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟
|
|
|
|
✀✁✂✃✄✅✆✇✈✉✊✋✌✍✎✏✐✑✒✓✔✕✖✗✘✙✚✛✜✝✞✟
|
|
|
|
✠✡✢✣✤✥✦✧✨✩✪✫✬✭✮✯✰✱✲✳✴✵✶✷✸✹✺✻✼✽✾✿\0"
|
|
|
|
|
|
|
|
render.clear(screen, render.black)
|
|
|
|
render.put_text(screen, @unwrap(font), .(0, 0), render.white, str)
|
|
|
|
render.sync(screen)
|
2024-10-26 03:23:28 -05:00
|
|
|
return
|
|
|
|
}
|