+ Add error message for wrong argument type given to hexfont.load_glyphs()

This commit is contained in:
Nils Dagsson Moskopp 2023-09-04 19:07:23 +02:00
parent 4a08715628
commit 7d36959d1e
Signed by: erlehmann
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ end
-- hexfont.load_glyphs(io.lines("unifont.hex"))
-- hexfont.load_glyphs(io.lines("unifont_upper.hex"))
hexfont.load_glyphs = function(self, iterator)
assert( "function" == type(iterator) )
assert( "function" == type(iterator), "Are you using io.lines()?" )
for line in iterator do
assert("string" == type(line))
local codepoint_hex, bitmap_hex = line:match(