Update user manual
[jpcrr.git] / lua / textrendertest.lua
blobd1dc9e5493a616124d49afcca2e97c67430339b9
1 dofile("textrender.lua");
3 font, err = io.open_arch_read("unifont.jrsr");
4 if not font then
5 error("Can't open font: " .. err);
6 end
8 set_font_file(font);
10 w, h = text_metrics("012345\n6789", false);
11 print(w .. "x" .. h);
13 while true do
14 if jpcrr.wait_vga() then
15 jpcrr.hud.top_gap(3, 20);
16 render_text(3, 0, 0, "Timestamp: " .. tostring(jpcrr.clock_time()), false, 255, 255, 0);
17 jpcrr.release_vga();
18 end
19 end