EmbedFontProgram

Text, Fonts

Description

Resolves the font name against installed system fonts and embeds the TrueType/OpenType font program into the PDF document.

Syntax

Delphi

Function TPDFlib.EmbedFontProgram(Const FontName: WideString): Integer;

Parameters

FontNameThe name of the font to embed (e.g., 'Arial').

Return values

0The font program could not be embedded
Non-zeroThe ID of the font or success indicator