SetColorEmojiFallbackFont

Text, Fonts, Color

Description

Assign an explicit fallback color font used when DrawColorText encounters emoji or symbols missing color coverage in the active font

Syntax

Delphi

Function TPDFlib.SetColorEmojiFallbackFont(FontID: Integer): Integer;

Parameters

FontIDHandle of a loaded document color font to search first on fallback, or 0 to clear the explicit fallback font

Return values

Returns 1 when applied or cleared, or 0 when a non-zero handle does not match a font in the selected document.

Remarks

During DrawColorText fallback lookup, the explicit fallback font is searched before other loaded document fonts and before the system color emoji font.

See also

DrawColorText, SetColorGlyphMode, GetLastColorGlyphDiagnostics