TtfGlyphParser
Overview
TtfGlyphParser is a class in Aspose.Font FOSS for Python.
TtfGlyphParser.parse parses the glyph identified by the given GlyphId and returns a Glyph object.
This class provides 3 methods for working with TtfGlyphParser objects in Python programs.
Available methods include: __init__, parse, tx.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(loca: LocaTable, glyf: GlyfTable, hmtx: HmtxTable) | Calls init on this TtfGlyphParser instance. |
parse(gid: GlyphId) → Glyph | Parses the glyph identified by the given GlyphId and returns a Glyph object |
tx(x: float, y: float) → tuple[float, float] | Applies a transformation to the input (x, y) coordinates and returns the resulting (x, y) tuple |