Type2Interpreter
Type2Interpreter
概述
Type2Interpreter 是Python的Aspose.Font FOSS中的一个类.
将2类字符串解释为GlyphPath 命令.
这个类提供了在Python程序中使用Type2Interpreter 对象的2种方法. 有的方法包括: __init__, interpret. 在安装Python包的Aspose.Font FOSS后,所有公众成员都可以访问任何 Python 应用程序.
方法
| Signature | 描述情况 |
|---|---|
__init__(global_subrs: CffIndex, local_subrs: CffIndex, default_width_x: int, nominal_width_x: int) | Calls 开始 在这个 Type2Interpreter 实例上. |
interpret(charstring: bytes, gid: int) → tuple[GlyphPath, int] | 解析2类的 charstring,返回 GlyphPath 对象的 tuple 和消耗字节数量. |