diff options
159 files changed, 67 insertions, 47 deletions
diff --git a/font_lib/init.lua b/font_lib/init.lua index c1dfdb8..b3b3222 100644 --- a/font_lib/init.lua +++ b/font_lib/init.lua @@ -17,34 +17,57 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. --]] +-- Global variables + font_lib = {} font_lib.path = minetest.get_modpath("font_lib") -font_lib.font_height = 10 +font_lib.font_height = 12 font_lib.font = {} --- Get png width, suposing png width is less than 256 (it is the case for all font textures) -local function get_png_width(filename) - local file=assert(io.open(filename,"rb")) - -- All font png are smaller than 256x256 --> read only last byte - file:seek("set",19) - local w = file:read(1) - file:close() - return w:byte() +-- Local functions + +local function get_next_char(text, pos) + pos = pos + 1 + local char = text:sub(pos, pos):byte() + if char >= 0x80 then + if char == 0xc2 or char == 0xc3 then + pos = pos + 1 + char = (char - 0xc2) * 0x40 + text:sub(pos, pos):byte() + else + char = 0 + end + end + if font_lib.font[char] == nil then char=0 end + + return char, pos +end + +local function split_lines(text, maxlines) + local splits = text:split("\n") + if maxlines then + local lines = {} + for num = 1,maxlines do + lines[num] = splits[num] + end + return lines + else + return splits + end end -- Computes line width for a given font height and text -- @param text Text to be rendered -- @return Rendered text width + function font_lib.get_line_width(text) local char local width = 0 - for p=1,#text - do - char = text:sub(p,p):byte() - if font_lib.font[char] then - width = width + font_lib.font[char].width - end + p=0 + + while p < #text do + char, p = get_next_char(text, p) + width = width + font_lib.font[char].width end return width @@ -56,36 +79,25 @@ end -- @param x Starting x position in texture -- @param y Vertical position of the line in texture -- @return Texture string + function font_lib.make_line_texture(text, texturew, x, y) local char local texture = "" - for p=1,#text - do - char = text:sub(p,p):byte() - if font_lib.font[char] then - -- Add image only if it is visible (at least partly) - if x + font_lib.font[char].width >= 0 and x <= texturew then - texture = texture..string.format(":%d,%d=%s", x, y, font_lib.font[char].filename) - end - x = x + font_lib.font[char].width - end - end - return texture -end + p=0 + + while p < #text do + char, p = get_next_char(text, p) -local function split_lines(text, maxlines) - local splits = text:split("\n") - if maxlines then - local lines = {} - for num = 1,maxlines do - lines[num] = splits[num] + -- Add image only if it is visible (at least partly) + if x + font_lib.font[char].width >= 0 and x <= texturew then + texture = texture..string.format(":%d,%d=%s", x, y, font_lib.font[char].filename) end - return lines - else - return splits + x = x + font_lib.font[char].width + end + return texture end --- Builds texture for a multiline colored text @@ -96,15 +108,16 @@ end -- @param valign Vertical text align ("top" or "center") -- @param color Color of the text -- @return Texture string + function font_lib.make_multiline_texture(text, texturew, textureh, maxlines, valign, color) local texture = "" local lines = split_lines(text, maxlines) local y if valign == "top" then - y = font_lib.font_height / 2 + y = font_lib.font_height / 2 - 1 else - y = (textureh - font_lib.font_height * #lines) / 2 + 1 + y = (textureh - font_lib.font_height * #lines) / 2 end for _, line in pairs(lines) do @@ -128,7 +141,6 @@ end function font_lib.on_display_update(pos, objref) local meta = minetest.get_meta(pos) local text = meta:get_string("display_text") - local ndef = minetest.registered_nodes[minetest.get_node(pos).name] local entity = objref:get_luaentity() @@ -145,10 +157,18 @@ function font_lib.on_display_update(pos, objref) end -- Populate fonts table -local w, filename -for charnum=32,126 do - filename = string.format("font_lib_%02x.png", charnum) - w = get_png_width(font_lib.path.."/textures/"..filename) - font_lib.font[charnum] = {filename=filename, width=w} + +local filename +for char = 0,255 do + filename = string.format("font_lib_%02x.png", char) + local file=io.open(font_lib.path.."/textures/"..filename,"rb") + if file~=nil then + -- Get png width, suposing png width is less than 256 (it is the case for all font textures) + -- All font png are smaller than 256x256 --> read only last byte + file:seek("set",19) + local w = file:read(1) + file:close() + font_lib.font[char] = {filename=filename, width=w:byte()} + end end diff --git a/font_lib/textures/font_lib_00.png b/font_lib/textures/font_lib_00.png Binary files differnew file mode 100644 index 0000000..65e43a7 --- /dev/null +++ b/font_lib/textures/font_lib_00.png diff --git a/font_lib/textures/font_lib_20.png b/font_lib/textures/font_lib_20.png Binary files differindex 1657997..049fd14 100644 --- a/font_lib/textures/font_lib_20.png +++ b/font_lib/textures/font_lib_20.png diff --git a/font_lib/textures/font_lib_21.png b/font_lib/textures/font_lib_21.png Binary files differindex d457a6c..7691a14 100644 --- a/font_lib/textures/font_lib_21.png +++ b/font_lib/textures/font_lib_21.png diff --git a/font_lib/textures/font_lib_22.png b/font_lib/textures/font_lib_22.png Binary files differindex 7e571ea..91f4c5f 100644 --- a/font_lib/textures/font_lib_22.png +++ b/font_lib/textures/font_lib_22.png diff --git a/font_lib/textures/font_lib_23.png b/font_lib/textures/font_lib_23.png Binary files differindex ee4e70c..9290dc1 100644 --- a/font_lib/textures/font_lib_23.png +++ b/font_lib/textures/font_lib_23.png diff --git a/font_lib/textures/font_lib_24.png b/font_lib/textures/font_lib_24.png Binary files differindex c05f037..cde69d4 100644 --- a/font_lib/textures/font_lib_24.png +++ b/font_lib/textures/font_lib_24.png diff --git a/font_lib/textures/font_lib_25.png b/font_lib/textures/font_lib_25.png Binary files differindex 671e8bd..703ab16 100644 --- a/font_lib/textures/font_lib_25.png +++ b/font_lib/textures/font_lib_25.png diff --git a/font_lib/textures/font_lib_26.png b/font_lib/textures/font_lib_26.png Binary files differindex 93d5247..6f98d49 100644 --- a/font_lib/textures/font_lib_26.png +++ b/font_lib/textures/font_lib_26.png diff --git a/font_lib/textures/font_lib_27.png b/font_lib/textures/font_lib_27.png Binary files differindex b645159..df31d75 100644 --- a/font_lib/textures/font_lib_27.png +++ b/font_lib/textures/font_lib_27.png diff --git a/font_lib/textures/font_lib_28.png b/font_lib/textures/font_lib_28.png Binary files differindex 759e448..478c2c4 100644 --- a/font_lib/textures/font_lib_28.png +++ b/font_lib/textures/font_lib_28.png diff --git a/font_lib/textures/font_lib_29.png b/font_lib/textures/font_lib_29.png Binary files differindex 316234f..8973488 100644 --- a/font_lib/textures/font_lib_29.png +++ b/font_lib/textures/font_lib_29.png diff --git a/font_lib/textures/font_lib_2a.png b/font_lib/textures/font_lib_2a.png Binary files differindex b32406d..2b83a5c 100644 --- a/font_lib/textures/font_lib_2a.png +++ b/font_lib/textures/font_lib_2a.png diff --git a/font_lib/textures/font_lib_2b.png b/font_lib/textures/font_lib_2b.png Binary files differindex 3987425..abce910 100644 --- a/font_lib/textures/font_lib_2b.png +++ b/font_lib/textures/font_lib_2b.png diff --git a/font_lib/textures/font_lib_2c.png b/font_lib/textures/font_lib_2c.png Binary files differindex d5e1919..8a624c7 100644 --- a/font_lib/textures/font_lib_2c.png +++ b/font_lib/textures/font_lib_2c.png diff --git a/font_lib/textures/font_lib_2d.png b/font_lib/textures/font_lib_2d.png Binary files differindex 78005ed..f0ff962 100644 --- a/font_lib/textures/font_lib_2d.png +++ b/font_lib/textures/font_lib_2d.png diff --git a/font_lib/textures/font_lib_2e.png b/font_lib/textures/font_lib_2e.png Binary files differindex 2180b81..aff49bc 100644 --- a/font_lib/textures/font_lib_2e.png +++ b/font_lib/textures/font_lib_2e.png diff --git a/font_lib/textures/font_lib_2f.png b/font_lib/textures/font_lib_2f.png Binary files differindex 87655f0..4667bf7 100644 --- a/font_lib/textures/font_lib_2f.png +++ b/font_lib/textures/font_lib_2f.png diff --git a/font_lib/textures/font_lib_30.png b/font_lib/textures/font_lib_30.png Binary files differindex 590252a..470f0b0 100644 --- a/font_lib/textures/font_lib_30.png +++ b/font_lib/textures/font_lib_30.png diff --git a/font_lib/textures/font_lib_31.png b/font_lib/textures/font_lib_31.png Binary files differindex 945e718..e84a9d3 100644 --- a/font_lib/textures/font_lib_31.png +++ b/font_lib/textures/font_lib_31.png diff --git a/font_lib/textures/font_lib_32.png b/font_lib/textures/font_lib_32.png Binary files differindex bcc2e2b..1ef3e84 100644 --- a/font_lib/textures/font_lib_32.png +++ b/font_lib/textures/font_lib_32.png diff --git a/font_lib/textures/font_lib_33.png b/font_lib/textures/font_lib_33.png Binary files differindex 14b9df8..ec9f518 100644 --- a/font_lib/textures/font_lib_33.png +++ b/font_lib/textures/font_lib_33.png diff --git a/font_lib/textures/font_lib_34.png b/font_lib/textures/font_lib_34.png Binary files differindex 16056ab..bc82823 100644 --- a/font_lib/textures/font_lib_34.png +++ b/font_lib/textures/font_lib_34.png diff --git a/font_lib/textures/font_lib_35.png b/font_lib/textures/font_lib_35.png Binary files differindex a88c37e..3ed26c5 100644 --- a/font_lib/textures/font_lib_35.png +++ b/font_lib/textures/font_lib_35.png diff --git a/font_lib/textures/font_lib_36.png b/font_lib/textures/font_lib_36.png Binary files differindex 30b07b7..6e706a4 100644 --- a/font_lib/textures/font_lib_36.png +++ b/font_lib/textures/font_lib_36.png diff --git a/font_lib/textures/font_lib_37.png b/font_lib/textures/font_lib_37.png Binary files differindex e3a117c..884b48a 100644 --- a/font_lib/textures/font_lib_37.png +++ b/font_lib/textures/font_lib_37.png diff --git a/font_lib/textures/font_lib_38.png b/font_lib/textures/font_lib_38.png Binary files differindex 946a7b3..a1e05bf 100644 --- a/font_lib/textures/font_lib_38.png +++ b/font_lib/textures/font_lib_38.png diff --git a/font_lib/textures/font_lib_39.png b/font_lib/textures/font_lib_39.png Binary files differindex 152bf5e..6443be9 100644 --- a/font_lib/textures/font_lib_39.png +++ b/font_lib/textures/font_lib_39.png diff --git a/font_lib/textures/font_lib_3a.png b/font_lib/textures/font_lib_3a.png Binary files differindex 05b14dc..752e9de 100644 --- a/font_lib/textures/font_lib_3a.png +++ b/font_lib/textures/font_lib_3a.png diff --git a/font_lib/textures/font_lib_3b.png b/font_lib/textures/font_lib_3b.png Binary files differindex 93615c9..77878e8 100644 --- a/font_lib/textures/font_lib_3b.png +++ b/font_lib/textures/font_lib_3b.png diff --git a/font_lib/textures/font_lib_3c.png b/font_lib/textures/font_lib_3c.png Binary files differindex 594523b..0252ab9 100644 --- a/font_lib/textures/font_lib_3c.png +++ b/font_lib/textures/font_lib_3c.png diff --git a/font_lib/textures/font_lib_3d.png b/font_lib/textures/font_lib_3d.png Binary files differindex 1be8ad4..af0325a 100644 --- a/font_lib/textures/font_lib_3d.png +++ b/font_lib/textures/font_lib_3d.png diff --git a/font_lib/textures/font_lib_3e.png b/font_lib/textures/font_lib_3e.png Binary files differindex 7966531..77fe954 100644 --- a/font_lib/textures/font_lib_3e.png +++ b/font_lib/textures/font_lib_3e.png diff --git a/font_lib/textures/font_lib_3f.png b/font_lib/textures/font_lib_3f.png Binary files differindex ff4bdd0..e94177c 100644 --- a/font_lib/textures/font_lib_3f.png +++ b/font_lib/textures/font_lib_3f.png diff --git a/font_lib/textures/font_lib_40.png b/font_lib/textures/font_lib_40.png Binary files differindex 7e31156..c7a11d2 100644 --- a/font_lib/textures/font_lib_40.png +++ b/font_lib/textures/font_lib_40.png diff --git a/font_lib/textures/font_lib_41.png b/font_lib/textures/font_lib_41.png Binary files differindex 546a502..5917cc0 100644 --- a/font_lib/textures/font_lib_41.png +++ b/font_lib/textures/font_lib_41.png diff --git a/font_lib/textures/font_lib_42.png b/font_lib/textures/font_lib_42.png Binary files differindex cf33dc7..69a92b3 100644 --- a/font_lib/textures/font_lib_42.png +++ b/font_lib/textures/font_lib_42.png diff --git a/font_lib/textures/font_lib_43.png b/font_lib/textures/font_lib_43.png Binary files differindex bde60b0..6f68703 100644 --- a/font_lib/textures/font_lib_43.png +++ b/font_lib/textures/font_lib_43.png diff --git a/font_lib/textures/font_lib_44.png b/font_lib/textures/font_lib_44.png Binary files differindex 025c194..94c0a30 100644 --- a/font_lib/textures/font_lib_44.png +++ b/font_lib/textures/font_lib_44.png diff --git a/font_lib/textures/font_lib_45.png b/font_lib/textures/font_lib_45.png Binary files differindex f1261f4..b6732c3 100644 --- a/font_lib/textures/font_lib_45.png +++ b/font_lib/textures/font_lib_45.png diff --git a/font_lib/textures/font_lib_46.png b/font_lib/textures/font_lib_46.png Binary files differindex 0e22836..992bdc1 100644 --- a/font_lib/textures/font_lib_46.png +++ b/font_lib/textures/font_lib_46.png diff --git a/font_lib/textures/font_lib_47.png b/font_lib/textures/font_lib_47.png Binary files differindex faa775b..12340e7 100644 --- a/font_lib/textures/font_lib_47.png +++ b/font_lib/textures/font_lib_47.png diff --git a/font_lib/textures/font_lib_48.png b/font_lib/textures/font_lib_48.png Binary files differindex d6ead06..f315c03 100644 --- a/font_lib/textures/font_lib_48.png +++ b/font_lib/textures/font_lib_48.png diff --git a/font_lib/textures/font_lib_49.png b/font_lib/textures/font_lib_49.png Binary files differindex 1d79859..53ef0bc 100644 --- a/font_lib/textures/font_lib_49.png +++ b/font_lib/textures/font_lib_49.png diff --git a/font_lib/textures/font_lib_4a.png b/font_lib/textures/font_lib_4a.png Binary files differindex c5b447a..32cd569 100644 --- a/font_lib/textures/font_lib_4a.png +++ b/font_lib/textures/font_lib_4a.png diff --git a/font_lib/textures/font_lib_4b.png b/font_lib/textures/font_lib_4b.png Binary files differindex 3deded8..1f770e7 100644 --- a/font_lib/textures/font_lib_4b.png +++ b/font_lib/textures/font_lib_4b.png diff --git a/font_lib/textures/font_lib_4c.png b/font_lib/textures/font_lib_4c.png Binary files differindex 3121f90..313ecfe 100644 --- a/font_lib/textures/font_lib_4c.png +++ b/font_lib/textures/font_lib_4c.png diff --git a/font_lib/textures/font_lib_4d.png b/font_lib/textures/font_lib_4d.png Binary files differindex 361bc51..f6676fb 100644 --- a/font_lib/textures/font_lib_4d.png +++ b/font_lib/textures/font_lib_4d.png diff --git a/font_lib/textures/font_lib_4e.png b/font_lib/textures/font_lib_4e.png Binary files differindex ea95311..4e28110 100644 --- a/font_lib/textures/font_lib_4e.png +++ b/font_lib/textures/font_lib_4e.png diff --git a/font_lib/textures/font_lib_4f.png b/font_lib/textures/font_lib_4f.png Binary files differindex 9e2629e..1b27777 100644 --- a/font_lib/textures/font_lib_4f.png +++ b/font_lib/textures/font_lib_4f.png diff --git a/font_lib/textures/font_lib_50.png b/font_lib/textures/font_lib_50.png Binary files differindex 53c4a4a..ddfff40 100644 --- a/font_lib/textures/font_lib_50.png +++ b/font_lib/textures/font_lib_50.png diff --git a/font_lib/textures/font_lib_51.png b/font_lib/textures/font_lib_51.png Binary files differindex c0f013f..c3df8ec 100644 --- a/font_lib/textures/font_lib_51.png +++ b/font_lib/textures/font_lib_51.png diff --git a/font_lib/textures/font_lib_52.png b/font_lib/textures/font_lib_52.png Binary files differindex e95599f..f93ff7c 100644 --- a/font_lib/textures/font_lib_52.png +++ b/font_lib/textures/font_lib_52.png diff --git a/font_lib/textures/font_lib_53.png b/font_lib/textures/font_lib_53.png Binary files differindex aa308d2..389a62b 100644 --- a/font_lib/textures/font_lib_53.png +++ b/font_lib/textures/font_lib_53.png diff --git a/font_lib/textures/font_lib_54.png b/font_lib/textures/font_lib_54.png Binary files differindex 7e7b90d..11ec544 100644 --- a/font_lib/textures/font_lib_54.png +++ b/font_lib/textures/font_lib_54.png diff --git a/font_lib/textures/font_lib_55.png b/font_lib/textures/font_lib_55.png Binary files differindex 90d5beb..5d15704 100644 --- a/font_lib/textures/font_lib_55.png +++ b/font_lib/textures/font_lib_55.png diff --git a/font_lib/textures/font_lib_56.png b/font_lib/textures/font_lib_56.png Binary files differindex a676acf..3e6f48a 100644 --- a/font_lib/textures/font_lib_56.png +++ b/font_lib/textures/font_lib_56.png diff --git a/font_lib/textures/font_lib_57.png b/font_lib/textures/font_lib_57.png Binary files differindex f4c5189..cc140d0 100644 --- a/font_lib/textures/font_lib_57.png +++ b/font_lib/textures/font_lib_57.png diff --git a/font_lib/textures/font_lib_58.png b/font_lib/textures/font_lib_58.png Binary files differindex 6ac7449..fe71fb9 100644 --- a/font_lib/textures/font_lib_58.png +++ b/font_lib/textures/font_lib_58.png diff --git a/font_lib/textures/font_lib_59.png b/font_lib/textures/font_lib_59.png Binary files differindex b1c48b0..1d1db03 100644 --- a/font_lib/textures/font_lib_59.png +++ b/font_lib/textures/font_lib_59.png diff --git a/font_lib/textures/font_lib_5a.png b/font_lib/textures/font_lib_5a.png Binary files differindex ae0cc83..e89b0eb 100644 --- a/font_lib/textures/font_lib_5a.png +++ b/font_lib/textures/font_lib_5a.png diff --git a/font_lib/textures/font_lib_5b.png b/font_lib/textures/font_lib_5b.png Binary files differindex a78d69a..e547c51 100644 --- a/font_lib/textures/font_lib_5b.png +++ b/font_lib/textures/font_lib_5b.png diff --git a/font_lib/textures/font_lib_5c.png b/font_lib/textures/font_lib_5c.png Binary files differindex bbeb143..35fc222 100644 --- a/font_lib/textures/font_lib_5c.png +++ b/font_lib/textures/font_lib_5c.png diff --git a/font_lib/textures/font_lib_5d.png b/font_lib/textures/font_lib_5d.png Binary files differindex 6259744..040ebe0 100644 --- a/font_lib/textures/font_lib_5d.png +++ b/font_lib/textures/font_lib_5d.png diff --git a/font_lib/textures/font_lib_5e.png b/font_lib/textures/font_lib_5e.png Binary files differindex 6bb6f1d..be3bbb1 100644 --- a/font_lib/textures/font_lib_5e.png +++ b/font_lib/textures/font_lib_5e.png diff --git a/font_lib/textures/font_lib_5f.png b/font_lib/textures/font_lib_5f.png Binary files differindex 74e8ea9..3cc8d3d 100644 --- a/font_lib/textures/font_lib_5f.png +++ b/font_lib/textures/font_lib_5f.png diff --git a/font_lib/textures/font_lib_60.png b/font_lib/textures/font_lib_60.png Binary files differindex 1985973..58500d2 100644 --- a/font_lib/textures/font_lib_60.png +++ b/font_lib/textures/font_lib_60.png diff --git a/font_lib/textures/font_lib_61.png b/font_lib/textures/font_lib_61.png Binary files differindex 91c0940..2121aa8 100644 --- a/font_lib/textures/font_lib_61.png +++ b/font_lib/textures/font_lib_61.png diff --git a/font_lib/textures/font_lib_62.png b/font_lib/textures/font_lib_62.png Binary files differindex 684a36a..ba3feeb 100644 --- a/font_lib/textures/font_lib_62.png +++ b/font_lib/textures/font_lib_62.png diff --git a/font_lib/textures/font_lib_63.png b/font_lib/textures/font_lib_63.png Binary files differindex ab5afa5..cee372c 100644 --- a/font_lib/textures/font_lib_63.png +++ b/font_lib/textures/font_lib_63.png diff --git a/font_lib/textures/font_lib_64.png b/font_lib/textures/font_lib_64.png Binary files differindex a59dee2..c5989c1 100644 --- a/font_lib/textures/font_lib_64.png +++ b/font_lib/textures/font_lib_64.png diff --git a/font_lib/textures/font_lib_65.png b/font_lib/textures/font_lib_65.png Binary files differindex b9ed9a2..7cd370a 100644 --- a/font_lib/textures/font_lib_65.png +++ b/font_lib/textures/font_lib_65.png diff --git a/font_lib/textures/font_lib_66.png b/font_lib/textures/font_lib_66.png Binary files differindex f927609..a63276c 100644 --- a/font_lib/textures/font_lib_66.png +++ b/font_lib/textures/font_lib_66.png diff --git a/font_lib/textures/font_lib_67.png b/font_lib/textures/font_lib_67.png Binary files differindex 3efba47..baf3e88 100644 --- a/font_lib/textures/font_lib_67.png +++ b/font_lib/textures/font_lib_67.png diff --git a/font_lib/textures/font_lib_68.png b/font_lib/textures/font_lib_68.png Binary files differindex a3fff55..1c9e9b4 100644 --- a/font_lib/textures/font_lib_68.png +++ b/font_lib/textures/font_lib_68.png diff --git a/font_lib/textures/font_lib_69.png b/font_lib/textures/font_lib_69.png Binary files differindex 468335f..785cdb5 100644 --- a/font_lib/textures/font_lib_69.png +++ b/font_lib/textures/font_lib_69.png diff --git a/font_lib/textures/font_lib_6a.png b/font_lib/textures/font_lib_6a.png Binary files differindex 275b82f..a7abd8e 100644 --- a/font_lib/textures/font_lib_6a.png +++ b/font_lib/textures/font_lib_6a.png diff --git a/font_lib/textures/font_lib_6b.png b/font_lib/textures/font_lib_6b.png Binary files differindex 4a83c0a..ff5f32a 100644 --- a/font_lib/textures/font_lib_6b.png +++ b/font_lib/textures/font_lib_6b.png diff --git a/font_lib/textures/font_lib_6c.png b/font_lib/textures/font_lib_6c.png Binary files differindex 1d79859..53ef0bc 100644 --- a/font_lib/textures/font_lib_6c.png +++ b/font_lib/textures/font_lib_6c.png diff --git a/font_lib/textures/font_lib_6d.png b/font_lib/textures/font_lib_6d.png Binary files differindex 63a79f2..351aeef 100644 --- a/font_lib/textures/font_lib_6d.png +++ b/font_lib/textures/font_lib_6d.png diff --git a/font_lib/textures/font_lib_6e.png b/font_lib/textures/font_lib_6e.png Binary files differindex 48262ba..60e089d 100644 --- a/font_lib/textures/font_lib_6e.png +++ b/font_lib/textures/font_lib_6e.png diff --git a/font_lib/textures/font_lib_6f.png b/font_lib/textures/font_lib_6f.png Binary files differindex 5dfb0f3..dd48b6c 100644 --- a/font_lib/textures/font_lib_6f.png +++ b/font_lib/textures/font_lib_6f.png diff --git a/font_lib/textures/font_lib_70.png b/font_lib/textures/font_lib_70.png Binary files differindex b95cc71..0fdb26f 100644 --- a/font_lib/textures/font_lib_70.png +++ b/font_lib/textures/font_lib_70.png diff --git a/font_lib/textures/font_lib_71.png b/font_lib/textures/font_lib_71.png Binary files differindex 6398974..787418e 100644 --- a/font_lib/textures/font_lib_71.png +++ b/font_lib/textures/font_lib_71.png diff --git a/font_lib/textures/font_lib_72.png b/font_lib/textures/font_lib_72.png Binary files differindex f72b1bb..7d2bf4c 100644 --- a/font_lib/textures/font_lib_72.png +++ b/font_lib/textures/font_lib_72.png diff --git a/font_lib/textures/font_lib_73.png b/font_lib/textures/font_lib_73.png Binary files differindex f3f296d..b2b2ed2 100644 --- a/font_lib/textures/font_lib_73.png +++ b/font_lib/textures/font_lib_73.png diff --git a/font_lib/textures/font_lib_74.png b/font_lib/textures/font_lib_74.png Binary files differindex 7e6c1e7..dcdbd37 100644 --- a/font_lib/textures/font_lib_74.png +++ b/font_lib/textures/font_lib_74.png diff --git a/font_lib/textures/font_lib_75.png b/font_lib/textures/font_lib_75.png Binary files differindex c0b16cd..5ef59c7 100644 --- a/font_lib/textures/font_lib_75.png +++ b/font_lib/textures/font_lib_75.png diff --git a/font_lib/textures/font_lib_76.png b/font_lib/textures/font_lib_76.png Binary files differindex 145bd97..710703f 100644 --- a/font_lib/textures/font_lib_76.png +++ b/font_lib/textures/font_lib_76.png diff --git a/font_lib/textures/font_lib_77.png b/font_lib/textures/font_lib_77.png Binary files differindex f3bd8a3..373ecb0 100644 --- a/font_lib/textures/font_lib_77.png +++ b/font_lib/textures/font_lib_77.png diff --git a/font_lib/textures/font_lib_78.png b/font_lib/textures/font_lib_78.png Binary files differindex 2b1d401..23541ff 100644 --- a/font_lib/textures/font_lib_78.png +++ b/font_lib/textures/font_lib_78.png diff --git a/font_lib/textures/font_lib_79.png b/font_lib/textures/font_lib_79.png Binary files differindex 1aaa5b4..e3fddb2 100644 --- a/font_lib/textures/font_lib_79.png +++ b/font_lib/textures/font_lib_79.png diff --git a/font_lib/textures/font_lib_7a.png b/font_lib/textures/font_lib_7a.png Binary files differindex 828e070..2a92823 100644 --- a/font_lib/textures/font_lib_7a.png +++ b/font_lib/textures/font_lib_7a.png diff --git a/font_lib/textures/font_lib_7b.png b/font_lib/textures/font_lib_7b.png Binary files differindex 9dd9dc8..7606697 100644 --- a/font_lib/textures/font_lib_7b.png +++ b/font_lib/textures/font_lib_7b.png diff --git a/font_lib/textures/font_lib_7c.png b/font_lib/textures/font_lib_7c.png Binary files differindex 013c6db..777f1e4 100644 --- a/font_lib/textures/font_lib_7c.png +++ b/font_lib/textures/font_lib_7c.png diff --git a/font_lib/textures/font_lib_7d.png b/font_lib/textures/font_lib_7d.png Binary files differindex d206d74..b9ee397 100644 --- a/font_lib/textures/font_lib_7d.png +++ b/font_lib/textures/font_lib_7d.png diff --git a/font_lib/textures/font_lib_7e.png b/font_lib/textures/font_lib_7e.png Binary files differindex cb79225..759b56e 100644 --- a/font_lib/textures/font_lib_7e.png +++ b/font_lib/textures/font_lib_7e.png diff --git a/font_lib/textures/font_lib_8a.png b/font_lib/textures/font_lib_8a.png Binary files differnew file mode 100644 index 0000000..e4f3236 --- /dev/null +++ b/font_lib/textures/font_lib_8a.png diff --git a/font_lib/textures/font_lib_8d.png b/font_lib/textures/font_lib_8d.png Binary files differnew file mode 100644 index 0000000..fcc3b38 --- /dev/null +++ b/font_lib/textures/font_lib_8d.png diff --git a/font_lib/textures/font_lib_a1.png b/font_lib/textures/font_lib_a1.png Binary files differnew file mode 100644 index 0000000..df91ae3 --- /dev/null +++ b/font_lib/textures/font_lib_a1.png diff --git a/font_lib/textures/font_lib_b1.png b/font_lib/textures/font_lib_b1.png Binary files differnew file mode 100644 index 0000000..2413844 --- /dev/null +++ b/font_lib/textures/font_lib_b1.png diff --git a/font_lib/textures/font_lib_bf.png b/font_lib/textures/font_lib_bf.png Binary files differnew file mode 100644 index 0000000..fec3deb --- /dev/null +++ b/font_lib/textures/font_lib_bf.png diff --git a/font_lib/textures/font_lib_c1.png b/font_lib/textures/font_lib_c1.png Binary files differnew file mode 100644 index 0000000..f2d7464 --- /dev/null +++ b/font_lib/textures/font_lib_c1.png diff --git a/font_lib/textures/font_lib_c2.png b/font_lib/textures/font_lib_c2.png Binary files differnew file mode 100644 index 0000000..c759ac9 --- /dev/null +++ b/font_lib/textures/font_lib_c2.png diff --git a/font_lib/textures/font_lib_c3.png b/font_lib/textures/font_lib_c3.png Binary files differnew file mode 100644 index 0000000..6239ee6 --- /dev/null +++ b/font_lib/textures/font_lib_c3.png diff --git a/font_lib/textures/font_lib_c4.png b/font_lib/textures/font_lib_c4.png Binary files differnew file mode 100644 index 0000000..1178423 --- /dev/null +++ b/font_lib/textures/font_lib_c4.png diff --git a/font_lib/textures/font_lib_c5.png b/font_lib/textures/font_lib_c5.png Binary files differnew file mode 100644 index 0000000..64e5efc --- /dev/null +++ b/font_lib/textures/font_lib_c5.png diff --git a/font_lib/textures/font_lib_c6.png b/font_lib/textures/font_lib_c6.png Binary files differnew file mode 100644 index 0000000..7eaf588 --- /dev/null +++ b/font_lib/textures/font_lib_c6.png diff --git a/font_lib/textures/font_lib_c7.png b/font_lib/textures/font_lib_c7.png Binary files differnew file mode 100644 index 0000000..247fbc4 --- /dev/null +++ b/font_lib/textures/font_lib_c7.png diff --git a/font_lib/textures/font_lib_c8.png b/font_lib/textures/font_lib_c8.png Binary files differnew file mode 100644 index 0000000..517b63d --- /dev/null +++ b/font_lib/textures/font_lib_c8.png diff --git a/font_lib/textures/font_lib_c9.png b/font_lib/textures/font_lib_c9.png Binary files differnew file mode 100644 index 0000000..cd4f8d8 --- /dev/null +++ b/font_lib/textures/font_lib_c9.png diff --git a/font_lib/textures/font_lib_ca.png b/font_lib/textures/font_lib_ca.png Binary files differnew file mode 100644 index 0000000..39aa1aa --- /dev/null +++ b/font_lib/textures/font_lib_ca.png diff --git a/font_lib/textures/font_lib_cb.png b/font_lib/textures/font_lib_cb.png Binary files differnew file mode 100644 index 0000000..7058b5a --- /dev/null +++ b/font_lib/textures/font_lib_cb.png diff --git a/font_lib/textures/font_lib_cc.png b/font_lib/textures/font_lib_cc.png Binary files differnew file mode 100644 index 0000000..a382d73 --- /dev/null +++ b/font_lib/textures/font_lib_cc.png diff --git a/font_lib/textures/font_lib_cd.png b/font_lib/textures/font_lib_cd.png Binary files differnew file mode 100644 index 0000000..86339a1 --- /dev/null +++ b/font_lib/textures/font_lib_cd.png diff --git a/font_lib/textures/font_lib_ce.png b/font_lib/textures/font_lib_ce.png Binary files differnew file mode 100644 index 0000000..78583df --- /dev/null +++ b/font_lib/textures/font_lib_ce.png diff --git a/font_lib/textures/font_lib_cf.png b/font_lib/textures/font_lib_cf.png Binary files differnew file mode 100644 index 0000000..b680e2e --- /dev/null +++ b/font_lib/textures/font_lib_cf.png diff --git a/font_lib/textures/font_lib_d0.png b/font_lib/textures/font_lib_d0.png Binary files differnew file mode 100644 index 0000000..50db9f9 --- /dev/null +++ b/font_lib/textures/font_lib_d0.png diff --git a/font_lib/textures/font_lib_d1.png b/font_lib/textures/font_lib_d1.png Binary files differnew file mode 100644 index 0000000..912524f --- /dev/null +++ b/font_lib/textures/font_lib_d1.png diff --git a/font_lib/textures/font_lib_d2.png b/font_lib/textures/font_lib_d2.png Binary files differnew file mode 100644 index 0000000..d7e635f --- /dev/null +++ b/font_lib/textures/font_lib_d2.png diff --git a/font_lib/textures/font_lib_d3.png b/font_lib/textures/font_lib_d3.png Binary files differnew file mode 100644 index 0000000..27ae016 --- /dev/null +++ b/font_lib/textures/font_lib_d3.png diff --git a/font_lib/textures/font_lib_d4.png b/font_lib/textures/font_lib_d4.png Binary files differnew file mode 100644 index 0000000..a62a3ed --- /dev/null +++ b/font_lib/textures/font_lib_d4.png diff --git a/font_lib/textures/font_lib_d5.png b/font_lib/textures/font_lib_d5.png Binary files differnew file mode 100644 index 0000000..3740df7 --- /dev/null +++ b/font_lib/textures/font_lib_d5.png diff --git a/font_lib/textures/font_lib_d6.png b/font_lib/textures/font_lib_d6.png Binary files differnew file mode 100644 index 0000000..9b3cd62 --- /dev/null +++ b/font_lib/textures/font_lib_d6.png diff --git a/font_lib/textures/font_lib_d7.png b/font_lib/textures/font_lib_d7.png Binary files differnew file mode 100644 index 0000000..a92ac66 --- /dev/null +++ b/font_lib/textures/font_lib_d7.png diff --git a/font_lib/textures/font_lib_d8.png b/font_lib/textures/font_lib_d8.png Binary files differnew file mode 100644 index 0000000..0453191 --- /dev/null +++ b/font_lib/textures/font_lib_d8.png diff --git a/font_lib/textures/font_lib_d9.png b/font_lib/textures/font_lib_d9.png Binary files differnew file mode 100644 index 0000000..607ac14 --- /dev/null +++ b/font_lib/textures/font_lib_d9.png diff --git a/font_lib/textures/font_lib_da.png b/font_lib/textures/font_lib_da.png Binary files differnew file mode 100644 index 0000000..91e5781 --- /dev/null +++ b/font_lib/textures/font_lib_da.png diff --git a/font_lib/textures/font_lib_db.png b/font_lib/textures/font_lib_db.png Binary files differnew file mode 100644 index 0000000..f63177d --- /dev/null +++ b/font_lib/textures/font_lib_db.png diff --git a/font_lib/textures/font_lib_dc.png b/font_lib/textures/font_lib_dc.png Binary files differnew file mode 100644 index 0000000..eeaa7c6 --- /dev/null +++ b/font_lib/textures/font_lib_dc.png diff --git a/font_lib/textures/font_lib_dd.png b/font_lib/textures/font_lib_dd.png Binary files differnew file mode 100644 index 0000000..f194136 --- /dev/null +++ b/font_lib/textures/font_lib_dd.png diff --git a/font_lib/textures/font_lib_e0.png b/font_lib/textures/font_lib_e0.png Binary files differnew file mode 100644 index 0000000..b9779fe --- /dev/null +++ b/font_lib/textures/font_lib_e0.png diff --git a/font_lib/textures/font_lib_e1.png b/font_lib/textures/font_lib_e1.png Binary files differnew file mode 100644 index 0000000..aeaeaf5 --- /dev/null +++ b/font_lib/textures/font_lib_e1.png diff --git a/font_lib/textures/font_lib_e2.png b/font_lib/textures/font_lib_e2.png Binary files differnew file mode 100644 index 0000000..8ca07ed --- /dev/null +++ b/font_lib/textures/font_lib_e2.png diff --git a/font_lib/textures/font_lib_e3.png b/font_lib/textures/font_lib_e3.png Binary files differnew file mode 100644 index 0000000..e2f00bb --- /dev/null +++ b/font_lib/textures/font_lib_e3.png diff --git a/font_lib/textures/font_lib_e4.png b/font_lib/textures/font_lib_e4.png Binary files differnew file mode 100644 index 0000000..6bcf6fb --- /dev/null +++ b/font_lib/textures/font_lib_e4.png diff --git a/font_lib/textures/font_lib_e5.png b/font_lib/textures/font_lib_e5.png Binary files differnew file mode 100644 index 0000000..698094e --- /dev/null +++ b/font_lib/textures/font_lib_e5.png diff --git a/font_lib/textures/font_lib_e6.png b/font_lib/textures/font_lib_e6.png Binary files differnew file mode 100644 index 0000000..70ac70a --- /dev/null +++ b/font_lib/textures/font_lib_e6.png diff --git a/font_lib/textures/font_lib_e7.png b/font_lib/textures/font_lib_e7.png Binary files differnew file mode 100644 index 0000000..f0462bd --- /dev/null +++ b/font_lib/textures/font_lib_e7.png diff --git a/font_lib/textures/font_lib_e8.png b/font_lib/textures/font_lib_e8.png Binary files differnew file mode 100644 index 0000000..841363e --- /dev/null +++ b/font_lib/textures/font_lib_e8.png diff --git a/font_lib/textures/font_lib_e9.png b/font_lib/textures/font_lib_e9.png Binary files differnew file mode 100644 index 0000000..7752df4 --- /dev/null +++ b/font_lib/textures/font_lib_e9.png diff --git a/font_lib/textures/font_lib_ea.png b/font_lib/textures/font_lib_ea.png Binary files differnew file mode 100644 index 0000000..b549be6 --- /dev/null +++ b/font_lib/textures/font_lib_ea.png diff --git a/font_lib/textures/font_lib_eb.png b/font_lib/textures/font_lib_eb.png Binary files differnew file mode 100644 index 0000000..f9c4dbc --- /dev/null +++ b/font_lib/textures/font_lib_eb.png diff --git a/font_lib/textures/font_lib_ec.png b/font_lib/textures/font_lib_ec.png Binary files differnew file mode 100644 index 0000000..e86f3a7 --- /dev/null +++ b/font_lib/textures/font_lib_ec.png diff --git a/font_lib/textures/font_lib_ed.png b/font_lib/textures/font_lib_ed.png Binary files differnew file mode 100644 index 0000000..94f12e8 --- /dev/null +++ b/font_lib/textures/font_lib_ed.png diff --git a/font_lib/textures/font_lib_ee.png b/font_lib/textures/font_lib_ee.png Binary files differnew file mode 100644 index 0000000..e8a743d --- /dev/null +++ b/font_lib/textures/font_lib_ee.png diff --git a/font_lib/textures/font_lib_ef.png b/font_lib/textures/font_lib_ef.png Binary files differnew file mode 100644 index 0000000..d2c744f --- /dev/null +++ b/font_lib/textures/font_lib_ef.png diff --git a/font_lib/textures/font_lib_f2.png b/font_lib/textures/font_lib_f2.png Binary files differnew file mode 100644 index 0000000..f7d1127 --- /dev/null +++ b/font_lib/textures/font_lib_f2.png diff --git a/font_lib/textures/font_lib_f4.png b/font_lib/textures/font_lib_f4.png Binary files differnew file mode 100644 index 0000000..4b0cce6 --- /dev/null +++ b/font_lib/textures/font_lib_f4.png diff --git a/font_lib/textures/font_lib_f5.png b/font_lib/textures/font_lib_f5.png Binary files differnew file mode 100644 index 0000000..ec7cec1 --- /dev/null +++ b/font_lib/textures/font_lib_f5.png diff --git a/font_lib/textures/font_lib_f6.png b/font_lib/textures/font_lib_f6.png Binary files differnew file mode 100644 index 0000000..7213c8a --- /dev/null +++ b/font_lib/textures/font_lib_f6.png diff --git a/font_lib/textures/font_lib_f7.png b/font_lib/textures/font_lib_f7.png Binary files differnew file mode 100644 index 0000000..408687d --- /dev/null +++ b/font_lib/textures/font_lib_f7.png diff --git a/font_lib/textures/font_lib_f9.png b/font_lib/textures/font_lib_f9.png Binary files differnew file mode 100644 index 0000000..67d16b5 --- /dev/null +++ b/font_lib/textures/font_lib_f9.png diff --git a/font_lib/textures/font_lib_fa.png b/font_lib/textures/font_lib_fa.png Binary files differnew file mode 100644 index 0000000..97de7e1 --- /dev/null +++ b/font_lib/textures/font_lib_fa.png diff --git a/font_lib/textures/font_lib_fb.png b/font_lib/textures/font_lib_fb.png Binary files differnew file mode 100644 index 0000000..2861e15 --- /dev/null +++ b/font_lib/textures/font_lib_fb.png diff --git a/font_lib/textures/font_lib_fc.png b/font_lib/textures/font_lib_fc.png Binary files differnew file mode 100644 index 0000000..c7deddd --- /dev/null +++ b/font_lib/textures/font_lib_fc.png diff --git a/font_lib/textures/font_lib_fd.png b/font_lib/textures/font_lib_fd.png Binary files differnew file mode 100644 index 0000000..b6f45f9 --- /dev/null +++ b/font_lib/textures/font_lib_fd.png diff --git a/font_lib/textures/font_lib_ff.png b/font_lib/textures/font_lib_ff.png Binary files differnew file mode 100644 index 0000000..d182a29 --- /dev/null +++ b/font_lib/textures/font_lib_ff.png diff --git a/signs_road/nodes.lua b/signs_road/nodes.lua index 5498c6f..d5d32c2 100644 --- a/signs_road/nodes.lua +++ b/signs_road/nodes.lua @@ -91,7 +91,7 @@ local models = { width = 14/16, height = 7/16, entity_fields = { - size = { x = 12/16, y = 5/16 }, + size = { x = 12/16, y = 6/16 }, resolution = { x = 112, y = 64 }, maxlines = 2, color="#fff", @@ -119,7 +119,7 @@ local models = { width = 14/16, height = 7/16, entity_fields = { - size = { x = 12/16, y = 5/16 }, + size = { x = 12/16, y = 6/16 }, resolution = { x = 112, y = 64 }, maxlines = 2, color="#fff", |