From c179f44ba481c73158fa72d658cbd9fed046dcdd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Sat, 26 Aug 2017 14:12:38 +0200 Subject: Release 2017-08-26 --- font_lib/README.md | 4 ++-- font_lib/copyright.txt | 4 ++-- font_lib/init.lua | 7 ++----- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to 'font_lib') 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) -- cgit v1.2.3