Avoid off-limits dictionary title and make font size adjustable

This commit is contained in:
Paulo Matias
2014-01-10 01:12:51 -02:00
parent 2052c1efb3
commit 9072a30cb5
4 changed files with 13 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ function TextWidget:paintTo(bb, x, y)
--bb:blitFrom(self._bb, x, y, 0, 0, self._length, self._bb:getHeight())
--@TODO Don't use kerning for monospaced fonts. (houqp)
RenderText:renderUtf8Text(bb, x, y+self._height*0.7, self.face, self.text,
true, self.bgcolor, self.fgcolor)
true, self.bgcolor, self.fgcolor, self.width)
end
function TextWidget:free()