AddType3Glyph

字体、Type 3 字体

描述

添加或替换一个按字节编码的字形,并重建字体编码、宽度和 Unicode 提取映射

语法

Delphi

Function TPDFlib.AddType3Glyph(FontID, CharCode: Integer; Const GlyphName, UnicodeText: WideString; WidthX, WidthY, LLX, LLY, URX, URY: Double; Const Content: AnsiString): Integer;

ActiveX

Function PDFlib::AddType3Glyph(FontID As Long, 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, Content As String) As Long

DLL

int DLAddType3Glyph(int InstanceID, int FontID, int CharCode, const wchar_t *GlyphName, const wchar_t *UnicodeText, double WidthX, double WidthY, double LLX, double LLY, double URX, double URY, const char *Content);

参数

CharCode 为 0 至 255。UnicodeText 可包含一个字符或多字符提取序列。Content 包含不带 d0 或 d1 的 PDF 图形运算符

返回值

1已更新字形流和派生字体表
0字体、代码、框、保留名称或重复字形名称无效

备注

库会先写入所需的 d1 度量,并将提供的程序隔离在成对的 q 和 Q 运算符中。替换现有字符代码会保持字体句柄稳定。只有 AddType3Font 返回的字体可变;在已加载文档中发现的 Type 3 字体会被拒绝