CffCharset
CffCharset
概述
CffCharset 是Python的Aspose.Font FOSS中的一个类.
创建一个标准的CFF字符集给定数量的图形, name_for(gid) 回报了图像ID的图象名.
这个类提供了4种方法,用于在Python程序中使用CffCharset 对象. 有的方法包括: from_reader, gid_for, name_for, standard. 在安装Python包的Aspose.Font FOSS后,所有公众成员都可以访问任何 Python 应用程序.
方法
| Signature | 描述情况 |
|---|---|
standard(num_glyphs: int) → "CffCharset" | 为给定的字符数量创建一个标准的CFF字母组, name_for(gid) 返回了字体ID的字形名称. |
from_reader(r: BinaryReader, num_glyphs: int, string_index: CffIndex) → "CffCharset" | 使用字符数和字串索引从二进制读取器中阅读字母组数据. |
name_for(gid: int) → str | 返回与指定字符标识符相关的字体名称. |
gid_for(name: str) → `int | None` |