BeginGlyph
Fonts, Type 3 fonts
Description
Opens one glyph of the font under construction; the path operators called afterwards accumulate into the glyph program until EndGlyph
Syntax
Delphi
Function BeginGlyph(CharCode: Integer; Const GlyphName,
UnicodeText: WideString; WidthX, WidthY, LLX, LLY, URX,
URY: Double): Integer;ActiveX
Function PDFlib::BeginGlyph(CharCode As Long, GlyphName As String, UnicodeText As String, WidthX As Double, WidthY As Double, LLX As Double, LLY As Double, URX As Double, URY As Double) As LongDLL
int DLBeginGlyph(int InstanceID, int CharCode, const wchar_t* GlyphName, const wchar_t* UnicodeText, double WidthX, double WidthY, double LLX, double LLY, double URX, double URY);
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 | Byte code from 0 through 255 that the glyph is bound to |
|---|---|
| GlyphName | Unique glyph name in the font; a leading slash is ignored and the name must not be empty |
| UnicodeText | Text-extraction mapping; an empty value is inferred from the glyph name or the character code |
| WidthX | Horizontal glyph displacement in glyph space; 0 for upright glyphs |
| WidthY | Vertical glyph displacement in glyph space; 0 for upright glyphs |
| LLX | Left edge of the glyph bounding box in glyph space |
| LLY | Bottom edge of the glyph bounding box in glyph space |
| URX | Right edge of the glyph bounding box; it must be greater than or equal to LLX |
| URY | Top edge of the glyph bounding box; it must be greater than or equal to LLY |
Return values
| 1 on success, 0 when no font is open, a glyph is already open, or the arguments are invalid |