Difference between revisions of "FontBase"
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> `FontBase` is the base class for `Font` and `TTFont` classes.<...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios, mac, pc<br/> |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
Line 6: | Line 6: | ||
`FontBase` is the base class for `Font` and `TTFont` classes.<br /> | `FontBase` is the base class for `Font` and `TTFont` classes.<br /> | ||
<br /> | <br /> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
{|- | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[FontBase:getAdvanceX]] - <br/> | ||
+ | [[FontBase:getAscender]] - returns the ascender of the font<br/> | ||
+ | [[FontBase:getBounds]] - returns the tight bounding rectangle of the characters in the string specified by text<br/> | ||
+ | [[FontBase:getCharIndexAtOffset]] - <br/> | ||
+ | [[FontBase:getLineHeight]] - returns the distance from one base line to the next<br/> | ||
+ | [[FontBase:layoutText]] - compute layout of text with given constraints<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
+ | [[FontBase.TLF_BOTTOM]] | ||
+ | [[FontBase.TLF_BREAKWORDS]] | ||
+ | [[FontBase.TLF_CENTER]] | ||
+ | [[FontBase.TLF_JUSTIFIED]] | ||
+ | [[FontBase.TLF_LEFT]] | ||
+ | [[FontBase.TLF_NOWRAP]] | ||
+ | [[FontBase.TLF_REF_BASELINE]] | ||
+ | [[FontBase.TLF_REF_BOTTOM]] | ||
+ | [[FontBase.TLF_REF_MIDDLE]] | ||
+ | [[FontBase.TLF_REF_TOP]] | ||
+ | [[FontBase.TLF_RIGHT]] | ||
+ | [[FontBase.TLF_TOP]] | ||
+ | [[FontBase.TLF_VCENTER]] | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
`FontBase` is the base class for `Font` and `TTFont` classes.
MethodsFontBase:getAdvanceX - |
EventsConstantsFontBase.TLF_BOTTOM FontBase.TLF_BREAKWORDS FontBase.TLF_CENTER FontBase.TLF_JUSTIFIED FontBase.TLF_LEFT FontBase.TLF_NOWRAP FontBase.TLF_REF_BASELINE FontBase.TLF_REF_BOTTOM FontBase.TLF_REF_MIDDLE FontBase.TLF_REF_TOP FontBase.TLF_RIGHT FontBase.TLF_TOP FontBase.TLF_VCENTER |