Anonymous

Not logged in

  • British English
  • Log in
GiderosMobile

FontBase

From GiderosMobile

Namespaces

  • Page
  • Discussion

More

  • More

Page actions

  • Read
  • View source
  • History
Revision as of 13:17, 23 August 2018 by Hgy29 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description


FontBase is the base class for Font and TTFont classes.

Methods

FontBase:getAdvanceX {{}}
FontBase:getAscender Template:Returns the ascender of the font
FontBase:getBounds Template:Returns the tight bounding rectangle of the characters in the string specified by text
FontBase:getCharIndexAtOffset {{}}
FontBase:getLineHeight Template:Returns the distance from one base line to the next
FontBase:layoutText Template: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_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

Retrieved from "https://wiki.gideros.rocks/index.php?title=FontBase&oldid=5243"

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

    Lua API
    Main API
    Plugins

    Wiki tools

    Wiki tools

    • Special pages

    Page tools

    Page tools

      User page tools

        More

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