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 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);參數
| CharCode | 字形繫結的字元代碼 0 到 255 |
|---|---|
| GlyphName | 字型內唯一的字形名稱 |
| UnicodeText | 文字擷取對應;空值會由字符名稱或字元碼推得 |
| WidthX..URY | 字形空間中的水平字形位移;正立字形為 0 |
| WidthY | 字符空間中的垂直字符位移;直立字符為 0 |
| LLX | 字符空間中字符邊界框的左緣 |
| LLY | 字符空間中字符邊界框的下緣 |
| URX | 字符邊界框的右緣;必須大於或等於 LLX |
| URY | 字符邊界框的上緣;必須大於或等於 LLY |
傳回值
| 成功為 1;沒有開啟的字型、已有開啟的字形或引數無效時為 0 |