Difference between revisions of "TTFont"

From GiderosMobile
m (added see also)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
 
 
<!-- GIDEROSOBJ:TTFont -->
 
<!-- GIDEROSOBJ:TTFont -->
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
+
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/FontBase|FontBase]]<br/>
+
'''Inherits from:''' [[Special:MyLanguage/FontBase|FontBase]]<br/>
  
=== <translate>Description</translate> ===
+
=== Description ===
The [[Special:MyLanguage/TTFont|TTFont]] class is used to load true type fonts.
+
The [[TTFont|TTFont]] class is used to load true type fonts.
  
=== <translate>Examples</translate> ===
+
=== Example ===
 
<source lang="lua">
 
<source lang="lua">
 
local font = TTFont.new("tahoma.ttf", 30)
 
local font = TTFont.new("tahoma.ttf", 30)
 
</source>
 
</source>
 +
 +
=== See also ===
 +
'''[[CompositeFont|CompositeFont]]'''
  
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Methods</translate> ===
+
=== Methods ===
[[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]] ''creates a new TTFont object''<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> ===
+
=== Events ===
=== <translate>Constants</translate> ===
+
=== Constants ===
 
|}
 
|}
  
 
{{GIDEROS IMPORTANT LINKS}}
 
{{GIDEROS IMPORTANT LINKS}}

Revision as of 21:46, 13 March 2020

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.

Example

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

See also

CompositeFont

Methods

TTFont.new creates a new TTFont object

Events

Constants