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> ===
<translate><br />
+
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. <br />
+
 
<br /></translate>
 
 
=== <translate>Examples</translate> ===
 
=== <translate>Examples</translate> ===
'''Example'''<br/>
+
<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> ===
 
|}
 
|}
 
{{TTFont}}
 

Revision as of 00:33, 10 December 2019


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
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)

Methods

TTFont.new creates a new TTFont object

Events

Constants