Difference between revisions of "TTFont"

From GiderosMobile
m (added see also)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 9: Line 9:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
local font = TTFont.new("tahoma.ttf", 30)
 
local font = TTFont.new("tahoma.ttf", 30)
 
</source>
 
</source>

Revision as of 14:31, 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

<syntaxhighlight lang="lua"> local font = TTFont.new("tahoma.ttf", 30) </source>

See also

CompositeFont

Methods

TTFont.new creates a new TTFont object

Events

Constants