BeginFont
Fonts, Type 3 fonts
Description
Opens a client-constructed Type 3 font: glyphs are contributed one by one between BeginGlyph and EndGlyph from structured path operators, and EndFont closes the font
Syntax
Delphi
Function BeginFont(Const FontName: WideString;
M11, M12, M21, M22, MDX, MDY, LLX, LLY, URX, URY: Double): Integer;ActiveX
Function PDFlib::BeginFont(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 LongDLL
int DLBeginFont(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 DLBeginFontA(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
| FontName | Font resource name; it must not be empty |
|---|---|
| M11 | First font-matrix entry, the horizontal scale per glyph unit |
| M12 | Second font-matrix entry, the vertical shear of the x axis |
| M21 | Third font-matrix entry, the horizontal shear of the y axis |
| M22 | Fourth font-matrix entry, the vertical scale; the matrix must stay non-singular, so M11*M22 - M12*M21 must not be zero |
| MDX | Fifth font-matrix entry, the x translation of the glyph origin |
| MDY | Sixth font-matrix entry, the y translation of the glyph origin |
| LLX | Left edge of the font bounding box in glyph space |
| LLY | Bottom edge of the font bounding box in glyph space |
| URX | Right edge of the font bounding box; it must be greater than or equal to LLX |
| URY | Top edge of the font bounding box; it must be greater than or equal to LLY |
Return values
| Font id usable with SelectFont after EndFont, or 0 when a build is already open or creation failed |
Remarks
Only one font can be under construction at a time; the reserved .notdef glyph is created eagerly