Update bigfonts.lua

fixed an issue when changing the text on while using bigfonts
This commit is contained in:
Robert Jelic
2023-06-30 21:03:26 +02:00
committed by GitHub
parent 193616c20d
commit 2970451fc6

View File

@@ -166,6 +166,7 @@ return {
setText = function(self, text)
base.setText(self, text)
if(fontsize>1)then
bigfont = makeText(fontsize-1, self:getText(), self:getForeground(), self:getBackground() or colors.lightGray)
if(self:getAutoSize())then
self:getBase():setSize(#bigfont[1][1], #bigfont[1]-1)
end