TTFont: Difference between revisions
From GiderosMobile
No edit summary |
m added see also |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<!-- GIDEROSOBJ:TTFont --> | <!-- 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/> | ||
''' | '''Inherits from:''' [[Special:MyLanguage/FontBase|FontBase]]<br/> | ||
=== | === Description === | ||
The [[ | The [[TTFont|TTFont]] class is used to load true type fonts. | ||
=== | === 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;"| | ||
=== | === Methods === | ||
[[Special:MyLanguage/TTFont.new|TTFont.new]] '' | [[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;"| | ||
=== | === Events === | ||
=== | === Constants === | ||
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} | ||
Revision as of 20:46, 13 March 2020
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
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
MethodsTTFont.new creates a new TTFont object |
EventsConstants |