mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
don't render text when no space
This commit is contained in:
@@ -52,9 +52,7 @@ function Font:getAdvance (text)
|
||||
return (self.font:getWidth(text))
|
||||
end
|
||||
|
||||
local major, minor, revision, codename = love.getVersion()
|
||||
|
||||
if minor < 10 then
|
||||
if love._version_minor < 10 then
|
||||
function Font:getWrappedHeight (text)
|
||||
local _, lines = self.font:getWrap(text, self.layout.width)
|
||||
return lines * self.font:getHeight()
|
||||
|
||||
Reference in New Issue
Block a user