CompositeFont

From GiderosMobile

This page contains changes which are not marked for translation.


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