SetMissingGlyphPolicy

Text, fonts, diagnostics

Description

Selects whether a missing glyph is reported and dropped or rejects the current text operation before content is written

Syntax

Delphi

Function TPDFlib.SetMissingGlyphPolicy(Policy: Integer): Integer;

ActiveX

Function PDFlib::SetMissingGlyphPolicy(Policy As Long) As Long

DLL

int DLSetMissingGlyphPolicy(int InstanceID, int Policy);

Parameters

PolicyPDF_MISSING_GLYPH_REPORT or 0 records the event and removes the missing scalar; PDF_MISSING_GLYPH_ABORT or 1 records the event and rejects the operation

Return values

Returns 1 for a supported policy and 0 for any other value

Remarks

The default is PDF_MISSING_GLYPH_REPORT to preserve compatible rendering while making data loss observable

An aborted operation sets LastErrorCode to 521

A registered callback receives the policy as its initial action and may override it for each event

See also

GetMissingGlyphPolicy, SetMissingGlyphCallback, GetMissingGlyphReportJSON