Type2Interpreter
Overview
Type2Interpreter is a class in Aspose.Font FOSS for Python.
Interprets Type 2 charstrings into GlyphPath commands.
This class provides 2 methods for working with Type2Interpreter objects in Python programs.
Available methods include: __init__, interpret.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(global_subrs: CffIndex, local_subrs: CffIndex, default_width_x: int, nominal_width_x: int) | Calls init on this Type2Interpreter instance. |
interpret(charstring: bytes, gid: int) → tuple[GlyphPath, int] | Parses a Type 2 charstring and returns a tuple of a GlyphPath object and the number of bytes consumed |