TTFont
From GiderosMobile
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
Available since: Gideros 2011.6
Inherits from: FontBase
Description
The TTFont class is used to load true type fonts. It seems OTF fonts are also supported (at least on Windows).
Examples
local font = TTFont.new("tahoma.ttf", 30)
Otf
local font = TTFont.new("fonts/FrankRuhlHofshi-Bold.otf", 40)
local tf = TextField.new(font, "HELLO GIDEROS!")
tf:setTextColor(0xc4c4c4)
tf:setPosition(3*32, 3*32)
stage:addChild(tf)
See also
MethodsTTFont.new creates a new TTFont object |
EventsConstants |