* Load unifont.hex from local directory

This commit is contained in:
Nils Dagsson Moskopp 2023-09-04 19:18:38 +02:00
parent 319bcf2c1f
commit 7bf03de2ec
Signed by: erle
GPG Key ID: A3BC671C35191080
2 changed files with 3 additions and 3 deletions

View File

@ -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ð♥𐍈😀!🂐겫")

View File

@ -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")