AddType3Font

Fonts, Type 3 fonts

Description

Creates a Type 3 font whose glyphs are supplied as PDF graphics programs and selects it as the current font

Syntax

Delphi

Function TPDFlib.AddType3Font(Const FontName: WideString; M11, M12, M21, M22, MDX, MDY, LLX, LLY, URX, URY: Double): Integer;

ActiveX

Function PDFlib::AddType3Font(FontName As String, M11 As Double, M12 As Double, M21 As Double, M22 As Double, MDX As Double, MDY As Double, LLX As Double, LLY As Double, URX As Double, URY As Double) As Long

DLL

int DLAddType3Font(int InstanceID, const wchar_t* FontName, double M11, double M12, double M21, double M22, double MDX, double MDY, double LLX, double LLY, double URX, double URY);
int DLAddType3FontA(int InstanceID, const char* FontName, double M11, double M12, double M21, double M22, double MDX, double MDY, double LLX, double LLY, double URX, double URY);

Parameters

FontNameFont resource name; it must not be empty
M11First font-matrix entry, the horizontal scale per glyph unit
M12Second font-matrix entry, the vertical shear of the x axis
M21Third font-matrix entry, the horizontal shear of the y axis
M22Fourth font-matrix entry, the vertical scale; the matrix must stay non-singular, so M11*M22 - M12*M21 must not be zero
MDXFifth font-matrix entry, the x translation of the glyph origin
MDYSixth font-matrix entry, the y translation of the glyph origin
LLXLeft edge of the font bounding box in glyph space
LLYBottom edge of the font bounding box in glyph space
URXRight edge of the font bounding box; it must be greater than or equal to LLX
URYTop edge of the font bounding box; it must be greater than or equal to LLY

Return values

Font IDA positive font handle on success
0The name is empty, the box is invalid, or the matrix is singular

Remarks

The font starts with a valid /.notdef glyph. A matrix of [0.001 0 0 0.001 0 0] is convenient when glyph coordinates use 1000 units per em