mirror of
https://github.com/airstruck/luigi.git
synced 2026-02-22 03:46:52 -07:00
word wrap
This commit is contained in:
@@ -197,13 +197,10 @@ Font.SDL2_ttf = SDL2_ttf
|
||||
|
||||
local fontCache = {}
|
||||
|
||||
function Font:constructor (path, size, color)
|
||||
function Font:constructor (path, size)
|
||||
if not size then
|
||||
size = 12
|
||||
end
|
||||
if not color then
|
||||
color = { 0, 0, 0, 255 }
|
||||
end
|
||||
if not path then
|
||||
path = REL:gsub('%.', '/') .. 'resource/DejaVuSans.ttf'
|
||||
end
|
||||
@@ -222,7 +219,6 @@ function Font:constructor (path, size, color)
|
||||
end
|
||||
|
||||
self.sdlFont = fontCache[key]
|
||||
self.color = color
|
||||
end
|
||||
|
||||
function Font:setAlignment (align)
|
||||
|
||||
Reference in New Issue
Block a user