AddType1Font
Text, Fonts
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 TPDFlib.AddType1Font(Const FileName: WideString): Integer;ActiveX
Function PDFlib::AddType1Font(FileName As String) As LongDLL
int DLAddType1Font(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 |