Difference between revisions of "FontBase"

(Constants)
 
Line 53: Line 53:
 
[[Special:MyLanguage/FontBase.TLF_REF_DESCENT|FontBase.TLF_REF_DESCENT]]<br/>
 
[[Special:MyLanguage/FontBase.TLF_REF_DESCENT|FontBase.TLF_REF_DESCENT]]<br/>
 
<!-- GIDEROSCST:FontBase.TLF_REF_DESCENT TLF_REF_DESCENT -->
 
<!-- GIDEROSCST:FontBase.TLF_REF_DESCENT TLF_REF_DESCENT -->
 +
[[Special:MyLanguage/FontBase.TLF_REF_LINETOP|FontBase.TLF_REF_LINETOP]]<br/>
 +
<!-- GIDEROSCST:FontBase.TLF_REF_LINETOP TLF_REF_LINETOP -->
 
[[Special:MyLanguage/FontBase.TLF_REF_MEDIAN|FontBase.TLF_REF_MEDIAN]]<br/>
 
[[Special:MyLanguage/FontBase.TLF_REF_MEDIAN|FontBase.TLF_REF_MEDIAN]]<br/>
 
<!-- GIDEROSCST:FontBase.TLF_REF_MEDIAN TLF_REF_MEDIAN -->
 
<!-- GIDEROSCST:FontBase.TLF_REF_MEDIAN TLF_REF_MEDIAN -->

Latest revision as of 14:04, 27 July 2020


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2011.6
Inherits from: Object

Description

FontBase is the base class for Font and TTFont classes.

Methods

FontBase:getAdvanceX returns the width of the first character
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 returns the offset within the given text string
FontBase:getLineHeight returns the distance from one base line to the next
FontBase:layoutText computes the text layout with given constraints

Events

Constants

FontBase.TLF_BOTTOM
FontBase.TLF_BREAKWORDS
FontBase.TLF_CENTER
FontBase.TLF_JUSTIFIED
FontBase.TLF_LEFT
FontBase.TLF_LTR
FontBase.TLF_NOBIDI
FontBase.TLF_NOSHAPING
FontBase.TLF_NOWRAP
FontBase.TLF_REF_ASCENT
FontBase.TLF_REF_BASELINE
FontBase.TLF_REF_BOTTOM
FontBase.TLF_REF_DESCENT
FontBase.TLF_REF_LINETOP
FontBase.TLF_REF_MEDIAN
FontBase.TLF_REF_MIDDLE
FontBase.TLF_REF_TOP
FontBase.TLF_RIGHT
FontBase.TLF_RTL
FontBase.TLF_TOP
FontBase.TLF_VCENTER