diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2017-08-26 14:12:38 +0200 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2017-08-26 14:12:38 +0200 |
commit | c179f44ba481c73158fa72d658cbd9fed046dcdd (patch) | |
tree | 48513ec25683841fad77f51a48ce91f0f47deaf9 /font_lib | |
parent | d59c475162da02695a85ebd92a44e53129aa8be3 (diff) | |
download | display_modpack-c179f44ba481c73158fa72d658cbd9fed046dcdd.tar.gz display_modpack-c179f44ba481c73158fa72d658cbd9fed046dcdd.tar.bz2 display_modpack-c179f44ba481c73158fa72d658cbd9fed046dcdd.zip |
Release 2017-08-26
Diffstat (limited to 'font_lib')
-rw-r--r-- | font_lib/README.md | 4 | ||||
-rw-r--r-- | font_lib/copyright.txt | 4 | ||||
-rw-r--r-- | font_lib/init.lua | 7 |
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) |