BeginGlyph

字体、Type 3 字体

描述

打开构建中字体的一个字形;之后调用的路径操作符会累积进字形程序,直到 EndGlyph

语法

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);

参数

CharCode该字形绑定的字符码,0..255
GlyphName字体内唯一的字形名
UnicodeText文本提取映射;空值会根据字形名或字符码推断
WidthX..URY字形空间中的水平字形位移;正立字形为 0
WidthY字形空间中的垂直字形位移;直立字形为 0
LLX字形空间中字形边界框的左边缘
LLY字形空间中字形边界框的下边缘
URX字形边界框的右边缘;必须大于或等于 LLX
URY字形边界框的上边缘;必须大于或等于 LLY

返回值

成功返回 1;没有打开的字体、已有打开的字形或参数非法时返回 0

另请参阅

BeginFont, EndGlyph, EndFont, GlyphMoveTo