Difference between revisions of "FontBase"
Line 5: | Line 5: | ||
<br /> | <br /> | ||
`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 === | ||
Line 42: | Line 17: | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
− | [[FontBase.TLF_BOTTOM]] | + | [[FontBase.TLF_BOTTOM]]<br/> |
− | [[FontBase.TLF_BREAKWORDS]] | + | [[FontBase.TLF_BREAKWORDS]]<br/> |
− | [[FontBase.TLF_CENTER]] | + | [[FontBase.TLF_CENTER]]<br/> |
− | [[FontBase.TLF_JUSTIFIED]] | + | [[FontBase.TLF_JUSTIFIED]]<br/> |
− | [[FontBase.TLF_LEFT]] | + | [[FontBase.TLF_LEFT]]<br/> |
− | [[FontBase.TLF_NOWRAP]] | + | [[FontBase.TLF_NOWRAP]]<br/> |
− | [[FontBase.TLF_REF_BASELINE]] | + | [[FontBase.TLF_REF_BASELINE]]<br/> |
− | [[FontBase.TLF_REF_BOTTOM]] | + | [[FontBase.TLF_REF_BOTTOM]]<br/> |
− | [[FontBase.TLF_REF_MIDDLE]] | + | [[FontBase.TLF_REF_MIDDLE]]<br/> |
− | [[FontBase.TLF_REF_TOP]] | + | [[FontBase.TLF_REF_TOP]]<br/> |
− | [[FontBase.TLF_RIGHT]] | + | [[FontBase.TLF_RIGHT]]<br/> |
− | [[FontBase.TLF_TOP]] | + | [[FontBase.TLF_TOP]]<br/> |
− | [[FontBase.TLF_VCENTER]] | + | [[FontBase.TLF_VCENTER]]<br/> |
|} | |} |
Revision as of 09:12, 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.
{|-
| style="width: 50%;"|
Methods
FontBase:getAdvanceX -
FontBase:getAscender - returns the ascender of the font
FontBase:getBounds - returns the tight bounding rectangle of the characters in the string specified by text
FontBase:getCharIndexAtOffset -
FontBase:getLineHeight - returns the distance from one base line to the next
FontBase:layoutText - compute layout of text with given constraints
| style="width: 50%;"|
Events
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
|}