SetColorGlyphMode

Text, Fonts, Colour

Description

Enable or disable authored colour-glyph resolution and automatic colour emoji fallback

Syntax

Delphi

Function TPDFlib.SetColorGlyphMode(Mode: Integer): Integer;

Parameters

Mode0 to disable authored colour resolution and draw standard monochrome text; 1 (the default) to enable authored colour glyphs with automatic colour emoji fallback; 2 to author colour glyphs from the selected font only without emoji fallback

Return values

Returns 1 when Mode is 0, 1 or 2, or 0 for out-of-range values.

Remarks

Out-of-range mode values leave the previous colour-glyph mode unchanged.

See also

GetColorGlyphMode, DrawColorText, SetColorEmojiFallbackFont