AddOpenTypeFontFromFile
Version history
This function was introduced in Quick PDF Library version 8.12.
Description
This function is identical to AddTrueTypeFontFromFile. Both functions allow a TrueType, OpenType/TrueType or OpenType/CFF font to be added from a file.
This version of the function provides an Options parameter which may be expanded in future to support advanced OpenType features.
Syntax
Delphi
function TDebenuPDFLibrary1811.AddOpenTypeFontFromFile(FileName: WideString;
Options: Integer): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::AddOpenTypeFontFromFile(
FileName As String, Options As Long) As Long
DLL
int DPLAddOpenTypeFontFromFile(int InstanceID, wchar_t * FileName, int Options)
Parameters
FileName | The font file name. |
Options | Should be set to 0. |
Return values
0 | The font could not be embedded |
Non-zero | The ID of the font that was successfully added. This ID can be used with the SelectFont function to select the font |