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 Long

DLL

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

CharCodeCharacter code 0..255 the glyph is bound to
GlyphNameUnique glyph name across the font
UnicodeTextText-extraction mapping; an empty value is inferred from the glyph name or the character code
WidthX..URYHorizontal glyph displacement in glyph space; 0 for upright glyphs
WidthYVertical glyph displacement in glyph space; 0 for upright glyphs
LLXLeft edge of the glyph bounding box in glyph space
LLYBottom edge of the glyph bounding box in glyph space
URXRight edge of the glyph bounding box; it must be greater than or equal to LLX
URYTop 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

See also

BeginFont, EndGlyph, EndFont, GlyphMoveTo