This commit is contained in:
Jean-Patrick Guerrero 2020-11-15 05:12:22 +01:00
parent b2b43fcf80
commit 6156dd55ad

@ -1154,7 +1154,7 @@ local function get_rcp_lbl(fs, data, panel, spacing, rn, is_recipe)
local _lbl = translate(data.lang_code, lbl)
local lbl_len = #_lbl:gsub("[\128-\191]", "") -- Count chars, not bytes in UTF-8 strings
local shift = min(0.9, abs(13 - max(13, lbl_len)) * 0.1)
local shift = min(0.9, abs(12 - max(12, lbl_len)) * 0.1)
fs[#fs + 1] = FMT("label", 1,
XOFFSET + (sfinv_only and 2.3 or 1.6) - shift,