From f46dd0a72ecf04937cef661a2e599ffb71417ba7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Wed, 5 Dec 2018 15:41:56 +0100 Subject: New Font:render method --- signs/nodes.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'signs') diff --git a/signs/nodes.lua b/signs/nodes.lua index 8e65e27..b04c463 100644 --- a/signs/nodes.lua +++ b/signs/nodes.lua @@ -33,9 +33,8 @@ local function display_poster(pos, node, player) node.name, minetest.pos_to_string(pos)) -- Title texture - local titletexture = font:make_text_texture( - meta:get_string("display_text"), font:get_height()*8.4, - font:get_height(), 1, "center") + local titletexture = font:render(meta:get_string("display_text"), + font:get_height()*8.4, font:get_height(), { lines = 1 }) fs = string.format([=[ size[7,9]bgcolor[#0000] -- cgit v1.2.3