Anonymous

Not logged in

  • British English
  • Log in
GiderosMobile

Last 8 Pages Viewed: Coroutine » FontBase

FontBase

From GiderosMobile

Namespaces

  • Page
  • Discussion

More

  • More
  • Languages

Page actions

  • Read
  • View source
  • History
Revision as of 22:54, 2 December 2019 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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
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

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_MEDIAN
FontBase.TLF_REF_MIDDLE
FontBase.TLF_REF_TOP
FontBase.TLF_RIGHT
FontBase.TLF_RTL
FontBase.TLF_TOP
FontBase.TLF_VCENTER


  • FontBase:getAdvanceX
  • FontBase:getAscender
  • FontBase:getBounds
  • FontBase:getCharIndexAtOffset
  • FontBase:getLineHeight
  • FontBase:layoutText




Retrieved from ‘https://wiki.gideros.rocks/index.php?title=FontBase&oldid=13730’

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

► Lua API
► Main API
► Plugins

Wiki tools

Wiki tools

  • Special pages

Page tools

Page tools

    Userpage tools

      More

      • What links here
      • Related changes
      • Printable version
      • Permanent link
      • Page information
      • Page logs
      Powered by MediaWiki
      • This page was last modified on 17 November 2023, at 19:11.
      • Privacy policy
      • About GiderosMobile
      • Disclaimers