SetColorGlyphMode

Text, Fonts, Color

Description

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

Syntax

Delphi

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

Parameters

Mode0 to disable authored color resolution and draw standard monochrome text; 1 (the default) to enable authored color glyphs with automatic color emoji fallback; 2 to author color 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 color-glyph mode unchanged.

See also

GetColorGlyphMode, DrawColorText, SetColorEmojiFallbackFont