CompositeFont

From GiderosMobile
Revision as of 12:08, 7 January 2019 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> <!-- GIDEROSOBJ:CompositeFont --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.pngFile:Platfo...")
(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 2019.1
Inherits from: FontBase

Description


The CompositeFont class is used to define fonts composed from other fonts. It allows to mix a regular font with an outlined font to create bordered font, and possibly more effects.

Examples

Example

local cf= CompositeFont.new{
{ font=outlinefont, color=0x000000 }, --Outlined font will be rendered in black
{ font=normalfont, x=1,y=2 }, --Normal font is drawn on top, with color coming from textfield and offseted by (1,2) logical coordinates
}

Methods

CompositeFont.new creates a new CompositeFont object

Events

Constants