From 13c2ca15582c99010039ca3278c39ae79b5220e0 Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Wed, 22 Oct 2025 15:22:37 +0300 Subject: [PATCH] fixed sign in text offset --- text.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text.lua b/text.lua index 13b7d7b..e6c6249 100644 --- a/text.lua +++ b/text.lua @@ -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