gui/OldStuff/GuiManager/Text/setNewFont.int
2022-01-16 22:40:22 -05:00

9 lines
281 B
Plaintext

function gui:setNewFont(filename,FontSize)
if type(filename)=="string" then
self.FontFile = filename
self.Font = love.graphics.newFont(filename, tonumber(FontSize))
else
self.Font=love.graphics.newFont(tonumber(filename))
end
self.Font:setFilter("linear","nearest",4)
end