TexturePackFont
From GiderosMobile
(Redirected from Category:TexturePackFont)
Supported platforms:
Available since: Gideros 2021.9
Inherits from: FontBase
Description
The TexturePackFont class is used to make TexturePack usable as Fonts in TextField.
Example
local tp = TexturePack.new({"coin.png", "diamond.png", "heart.png"})
local font = TexturePackFont.new(tp,{C="coin.png", D="diamond.png", H="heart.png"},0.5)
local tf = TextField.new(font, "CCDHHH")
stage:addChild(tf)
See also
MethodsTexturePackFont.new creates a new TexturePackFont object |
EventsConstants |