* Rename load_hex_font() to load_font_file()

This commit is contained in:
Nils Dagsson Moskopp 2023-03-15 16:58:08 +01:00
parent 8fa8382408
commit 57cb99292b
2 changed files with 4 additions and 4 deletions

View File

@ -59,8 +59,8 @@ text_bitmap_0 = hexdraw.render_text("wð♥𐍈😀!🂐겫")
print_bitmap(text_bitmap_0)
print("---")
hexdraw.load_hex_font("/usr/share/unifont/unifont.hex")
hexdraw.load_hex_font("unifont_upper.hex")
hexdraw.load_font_file("/usr/share/unifont/unifont.hex")
hexdraw.load_font_file("unifont_upper.hex")
text_bitmap_1 = hexdraw.render_text("wð♥𐍈😀!🂐겫")
print_bitmap(text_bitmap_1)

View File

@ -9,8 +9,8 @@ local bitmaps_hex = {
["FFFD"] = "0000007E665A5A7A76767E76767E0000"
}
-- load glyphs from a given hex font file
hexdraw.load_hex_font = function(filename)
-- load glyphs from a .hex format font file
hexdraw.load_font_file = function(filename)
assert(
"string" == type(filename)
)