Skip to content
Snippets Groups Projects
Commit 325ef286 authored by DarkGod's avatar DarkGod
Browse files

fix

parent ca7dd702
No related branches found
No related tags found
No related merge requests found
......@@ -80,11 +80,10 @@ function _M:getFont(name, orname)
end
--- Get by name.
-- @bug orname is used but not defined
-- @string name
-- @param[type=?boolean] force make a font bold no matter what
function _M:get(name, force)
local font, size = self:resolveFont(name, orname)
local font, size = self:resolveFont(name)
local f = core.display.newFont(font.font, font[size], font.bold or force)
if font.bold then f:setStyle("bold") end
return f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment