CffEncoding
CffEncoding
Overview
CffEncoding 是Python的Aspose.Font FOSS中的一个类. 继承人: FontEncoding.
根据当前的CFF编码,返回一个Unicode代码点的CffEncoding.unicode_to_gid(codepoint.
这个类提供了在Python程序中与CffEncoding对象工作的5种方法. 有的方法包括: expert, from_reader, get_all_codepoints, standard, unicode_to_gid. 在安装Python包的Aspose.Font FOSS后,所有公众成员都可以访问任何 Python 应用程序.
Methods
| Signature | Description |
|---|---|
from_reader(r: BinaryReader, num_glyphs: int, charset: CffCharset, string_index: CffIndex) → "CffEncoding" | 通过使用给定的字符串数量,文字组和字串索引来读取 BinaryReader 来创建编码 |
standard(charset: CffCharset) → "CffEncoding" | 返回为所提供的字符集配置的标准CFF编码. |
expert(charset: CffCharset) → "CffEncoding" | 返回为所提供的字符集配置的专家CFF编码 |
unicode_to_gid(codepoint: int) → GlyphId | 根据当前的CFF编码返回一个Unicode代码点的GlyphId |
get_all_codepoints() → list[int] | 返回所有代码点. |