BeginFontA

字体、Type 3 字体

描述

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

打开一个客户端构建的 Type 3 字体:在 BeginGlyph 与 EndGlyph 之间用结构化路径操作符逐个贡献字形,最后由 EndFont 关闭字体

语法

Delphi

Function DLBeginFontA(InstanceID: Integer; FontName: PAnsiChar; M11, M12, M21, M22, MDX, MDY, LLX, LLY, URX, URY: Double): Integer;

DLL

int DLBeginFontA(int InstanceID, const char* FontName, double M11, double M12, double M21, double M22, double MDX, double MDY, double LLX, double LLY, double URX, double URY);

参数

FontName字体资源名称
M11..MDY字体矩阵的六个元素,通常为 0.001 0 0 0.001 0 0
LLX..URY字形空间中的字体包围盒

返回值

EndFont 之后可配合 SelectFont 使用的字体 id;已有构建中的字体或创建失败时返回 0

备注

同一时间只能有一个字体处于构建中;保留的 .notdef 字形会立即创建

另请参阅

BeginGlyph, EndGlyph, EndFont, GlyphMoveTo