aboutsummaryrefslogtreecommitdiff
path: root/font_lib
diff options
context:
space:
mode:
Diffstat (limited to 'font_lib')
-rw-r--r--font_lib/README.md4
-rw-r--r--font_lib/copyright.txt4
-rw-r--r--font_lib/init.lua7
3 files changed, 6 insertions, 9 deletions
diff --git a/font_lib/README.md b/font_lib/README.md
index 75ea12e..67903a9 100644
--- a/font_lib/README.md
+++ b/font_lib/README.md
@@ -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.
diff --git a/font_lib/copyright.txt b/font_lib/copyright.txt
index 83b4af0..eb0ec6a 100644
--- a/font_lib/copyright.txt
+++ b/font_lib/copyright.txt
@@ -1,2 +1,2 @@
-Code by Pierre-Yves Rollo
-Textures by Vanessa Ezekowitz
+Code by Pierre-Yves Rollo (pyrollo)
+Textures by Vanessa Ezekowitz (VanessaE)
diff --git a/font_lib/init.lua b/font_lib/init.lua
index b3b3222..9dd6908 100644
--- a/font_lib/init.lua
+++ b/font_lib/init.lua
@@ -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)