Fix: unifont not rendering on font selection menu

This commit is contained in:
syimyuzya 2021-12-04 13:29:23 +08:00
parent 79aac655b3
commit 79a9a23868
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ local function show_font_formspec(playername)
font:get_height()*1.2, 1, "center", "top", "#fff")
fs = string.format(
"%simage[0.1,%s;4.5,0.8;%s]button_exit[0,%s;4,1;font_%s;]",
fs, line-0.9, texture, line-1, font.name)
fs, line-0.9, minetest.formspec_escape(texture), line-1, font.name)
end
minetest.show_formspec(context.playername, modname..':font_list', fs)
end