+ Add error message for wrong argument type given to hexfont.load_glyphs()
This commit is contained in:
parent
4a08715628
commit
7d36959d1e
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue