BeginGlyphA
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 BeginGlyph and string arguments are interpreted using the current SetAnsiMode code page
Opens one glyph of the font under construction; the path operators called afterwards accumulate into the glyph program until EndGlyph
Syntax
Delphi
Function DLBeginGlyphA(InstanceID, CharCode: Integer; GlyphName, UnicodeText: PAnsiChar; WidthX, WidthY, LLX, LLY, URX, URY: Double): Integer;
DLL
int DLBeginGlyphA(int InstanceID, int CharCode, const char* GlyphName, const char* UnicodeText, double WidthX, double WidthY, double LLX, double LLY, double URX, double URY);
Parameters
| CharCode | Character code 0..255 the glyph is bound to |
|---|---|
| GlyphName | Unique glyph name across the font |
| UnicodeText | Unicode mapping text for text extraction; when empty, inferred automatically from uniXXXX or single-character glyph names or printable character codes |
| WidthX..URY | Glyph metrics in glyph space |
Return values
| 1 on success, 0 when no font is open, a glyph is already open, or the arguments are invalid |