fixed sign in text offset

This commit is contained in:
Alexey 2025-10-22 15:22:37 +03:00
commit 13c2ca1558

View file

@ -34,7 +34,7 @@ function Text:draw()
local w, h = self.size:coords()
local oy = 0
if self.align == "center" then
oy = -h / 2 - fontsize / 2
oy = -h / 2 + fontsize / 2
end
love.graphics.printf(self.text, x, y, w, self.align, 0, 1, 1, 0, oy )
end