Difference between revisions of "TTFont"
From GiderosMobile
Line 5: | Line 5: | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/FontBase|FontBase]]<br/> | '''<translate>Inherits from</translate>:''' [[Special:MyLanguage/FontBase|FontBase]]<br/> | ||
+ | |||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
− | + | The [[Special:MyLanguage/TTFont|TTFont]] class is used to load true type fonts. | |
− | The [[Special:MyLanguage/TTFont|TTFont]] class is used to load true type fonts. | + | |
− | |||
=== <translate>Examples</translate> === | === <translate>Examples</translate> === | ||
− | + | <source lang="lua"> | |
− | <source lang="lua">local font = TTFont.new("tahoma.ttf", 30)</source> | + | local font = TTFont.new("tahoma.ttf", 30) |
+ | </source> | ||
+ | |||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
[[Special:MyLanguage/TTFont.new|TTFont.new]] ''<translate>creates a new TTFont object</translate>''<br/><!-- GIDEROSMTD:TTFont.new(filename,size,text,filtering,outlineSize) creates a new TTFont object --> | [[Special:MyLanguage/TTFont.new|TTFont.new]] ''<translate>creates a new TTFont object</translate>''<br/><!-- GIDEROSMTD:TTFont.new(filename,size,text,filtering,outlineSize) creates a new TTFont object --> | ||
+ | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
|} | |} | ||
− | |||
− |
Revision as of 00:33, 10 December 2019
Supported platforms:
Available since: Gideros 2011.6
Inherits from: FontBase
Description
The TTFont class is used to load true type fonts.
Examples
local font = TTFont.new("tahoma.ttf", 30)
MethodsTTFont.new creates a new TTFont object |
EventsConstants |