BeginFontA

Fonts, Type 3 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 BeginFont and string arguments are interpreted using the current SetAnsiMode code page

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 DLBeginFontA(InstanceID: Integer; FontName: PAnsiChar; M11, M12, M21, M22, MDX, MDY, LLX, LLY, URX, URY: Double): Integer;

DLL

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

FontNameFont resource name
M11..MDYSix entries of the font matrix, typically 0.001 0 0 0.001 0 0
LLX..URYFont bounding box in glyph space

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

See also

BeginGlyph, EndGlyph, EndFont, GlyphMoveTo