AddType1FontA

Text, Fonts

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddType1Font and string arguments are interpreted using the current SetAnsiMode code page

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 DLAddType1FontA(InstanceID: Integer; FileName: PAnsiChar): Integer;

DLL

int DLAddType1FontA(int InstanceID, const char * FileName);

Parameters

FileNameThe 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

0The font could not be added. Either the font files are in the wrong format, or they cannot be found.
Non-zeroThe ID of the font that was successfully added. This ID can be used with the SelectFont function to select the font