Difference between revisions of "TTFont"

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

Latest revision as of 14:33, 13 July 2023

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