TTFont: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 2: Line 2:
'''Supported platforms:''' android, ios, mac, pc<br/>
'''Supported platforms:''' android, ios, mac, pc<br/>
'''Available since:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
=== <translate>Description</translate> ===
<translate><br />
<translate><br />
The [[Special:MyLanguage/TTFont|TTFont]] class is used to load true type fonts. <br />
The [[Special:MyLanguage/TTFont|TTFont]] class is used to load true type fonts. <br />
<br /></translate>
<br /></translate>
=== Examples ===
=== <translate>Examples</translate> ===
'''Example'''<br/>
'''Example'''<br/>
<source lang="lua">local font = TTFont.new("tahoma.ttf", 30)</source>
<source lang="lua">local font = TTFont.new("tahoma.ttf", 30)</source>
{|-
{|-
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== Methods ===
=== <translate>Methods</translate> ===
[[Special:MyLanguage/TTFont.new|TTFont.new]] ''<translate>creates a new TTFont object</translate>''<br/>
[[Special:MyLanguage/TTFont.new|TTFont.new]] ''<translate>creates a new TTFont object</translate>''<br/>
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== Events ===
=== <translate>Events</translate> ===
=== Constants ===
=== <translate>Constants</translate> ===
|}
|}

Revision as of 06:28, 24 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description


The TTFont class is used to load true type fonts.

Examples

Example

local font = TTFont.new("tahoma.ttf", 30)

Methods

TTFont.new creates a new TTFont object

Events

Constants