1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-07-16 15:00:32 +02:00

New Font:render method

This commit is contained in:
Pierre-Yves Rollo
2018-12-05 15:41:56 +01:00
parent b71d5a8f01
commit f46dd0a72e
5 changed files with 135 additions and 130 deletions

View File

@ -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]