diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-08 20:41:02 +0200 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-08 20:41:02 +0200 |
commit | e233ffb691b690369b73eee3fd11cbd81373b0f6 (patch) | |
tree | 1ece580d97d9e282ce1e25328e2666e23a26b724 | |
parent | 52973fbd84c4ded324d1f0272fe904652eb0515c (diff) | |
download | display_modpack_no_craft-e233ffb691b690369b73eee3fd11cbd81373b0f6.tar.gz display_modpack_no_craft-e233ffb691b690369b73eee3fd11cbd81373b0f6.zip |
Creation of Font class and code update accordingly (fix)
-rw-r--r-- | font.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -187,12 +187,11 @@ function font_api.Font:make_line_texture(line, texturew, x, y) local pos = 1 -- TODO: Use iterator - while pos <= #text do + while pos <= #line do char, pos = get_next_char(line, pos) -- Replace chars with no texture by the NULL(0) char if self.widths[char] == nil -or char == 88 --DEBUG then print(string.format("["..font_api.name .."] Missing char %d (%04x)",char,char)) |