* Rename load_hex_font() to load_font_file()
This commit is contained in:
parent
8fa8382408
commit
57cb99292b
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue