1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-07-06 10:00:42 +02:00

Release 2017-08-26

This commit is contained in:
Pierre-Yves Rollo
2017-08-26 14:12:38 +02:00
parent d59c475162
commit c179f44ba4
74 changed files with 2778 additions and 324 deletions

View File

@ -8,7 +8,7 @@ This library for font display on entities (to be used with display_lib for sign
(Font taken from VanessaE's homedecor/signs_lib, originally under WTFPL)
**API**: See API.md document please.
**API**: See [API.md](https://github.com/pyrollo/display_modpack/blob/master/font_lib/API.md) document please.
For more information, see the [forum topic](https://forum.minetest.net/viewtopic.php?f=11&t=13563) at the Minetest forums.

View File

@ -1,2 +1,2 @@
Code by Pierre-Yves Rollo
Textures by Vanessa Ezekowitz
Code by Pierre-Yves Rollo (pyrollo)
Textures by Vanessa Ezekowitz (VanessaE)

View File

@ -62,8 +62,7 @@ end
function font_lib.get_line_width(text)
local char
local width = 0
p=0
local p=0
while p < #text do
char, p = get_next_char(text, p)
@ -82,10 +81,8 @@ end
function font_lib.make_line_texture(text, texturew, x, y)
local char
local texture = ""
p=0
local p=0
while p < #text do
char, p = get_next_char(text, p)