EmbedFontProgramFromFile
Text, Fonts
Description
Embeds a TrueType/OpenType font program directly from a specified font file on disk.
Syntax
Delphi
Function TPDFlib.EmbedFontProgramFromFile(Const FontName, FileName: WideString): Integer;
Parameters
| FontName | The name to register the font under. |
|---|---|
| FileName | The absolute or relative path to the TrueType/OpenType font file (.ttf, .ttc, .otf). |
Return values
| 0 | The font program could not be embedded |
|---|---|
| Non-zero | Success indicator |