AddType1Font
Description
Adds a PostScript Type1 font to the document. The font must be supplied as two files, a .pfm and a .pfb file. The full path to the .pfm file must be supplied. The font is embedded in the document.
Syntax
Delphi
function TQuickPDF0813.AddType1Font(FileName: WideString): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::AddType1Font(FileName As String) As Long
DLL
int QuickPDFAddType1Font(int InstanceID, wchar_t * FileName)
Parameters
| FileName | The full path to the .pfm file. A .pfb file with the same name should exist in the same directory as the .pfm file. |
Return values
| 0 | The font could not be added. Either the font files are in the wrong format, or they cannot be found. |
| Non-zero | The ID of the font that was successfully added. This ID can be used with the SelectFont function to select the font |