AddTrueTypeFontFromFile
Description
Embeds a TrueType, OpenType/TrueType or OpenType/CFF font into the document. The TrueType font is specified by the file name and does not have to be installed as a Windows font.
This function is functionally identical to AddOpenTypeFontFromFile.
For TrueType and OpenType/TrueType fonts, a temporary file must be created during this process, call SetTempPath to specify where this temporary file should be created.
Syntax
Delphi
function TQuickPDF0813.AddTrueTypeFontFromFile(FileName: WideString): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::AddTrueTypeFontFromFile(FileName As String) As Long
DLL
int QuickPDFAddTrueTypeFontFromFile(int InstanceID, wchar_t * FileName)
Parameters
| FileName | The full path and file name of the TrueType font file to embed. |
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 |