* Load unifont.hex from local directory
This commit is contained in:
parent
319bcf2c1f
commit
7bf03de2ec
|
@ -59,7 +59,7 @@ text_bitmap_0 = hexdraw.render_text("wð♥𐍈😀!🂐겫")
|
|||
print_bitmap(text_bitmap_0)
|
||||
print("---")
|
||||
|
||||
hexdraw.load_font_file("/usr/share/unifont/unifont.hex")
|
||||
hexdraw.load_font_file("unifont.hex")
|
||||
hexdraw.load_font_file("unifont_upper.hex")
|
||||
|
||||
text_bitmap_1 = hexdraw.render_text("wð♥𐍈😀!🂐겫")
|
||||
|
|
4
test.lua
4
test.lua
|
@ -10,7 +10,7 @@ font_1 = unicode_text.hexfont(
|
|||
}
|
||||
)
|
||||
font_1:load_glyphs(
|
||||
io.lines("/usr/share/unifont/unifont.hex")
|
||||
io.lines("unifont.hex")
|
||||
)
|
||||
font_1:load_glyphs(
|
||||
io.lines("U+FFFD.hex")
|
||||
|
@ -35,7 +35,7 @@ font_2 = unicode_text.hexfont(
|
|||
}
|
||||
)
|
||||
font_2:load_glyphs(
|
||||
io.lines("/usr/share/unifont/unifont.hex")
|
||||
io.lines("unifont.hex")
|
||||
)
|
||||
font_2:load_glyphs(
|
||||
io.lines("unifont_upper.hex")
|
||||
|
|
Loading…
Reference in New Issue