BeginGlyphA

字体、Type 3 字体

描述

末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 BeginGlyph 相同,字符串参数按当前 SetAnsiMode 代码页解释

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

语法

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

参数

CharCode该字形绑定的字符码,0..255
GlyphName字体内唯一的字形名
UnicodeText用于文字提取的 Unicode 映射文本;为空时自动从 uniXXXX 字形名、单字符名或可打印字符码推断
WidthX..URY字形空间中的字形度量

返回值

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

另请参阅

BeginFont, EndGlyph, EndFont, GlyphMoveTo