KernTable
Overview
KernTable is a class in Aspose.Font FOSS for Python.
Description
KernTable is a class in the Aspose.Font FOSS library for Python that exposes 4 methods and 1 property for programmatic use.
Core capabilities include: list[kernpair]. These operations enable developers to integrate kerntable functionality directly into Python applications.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
pairs | list[KernPair] | Read |
Methods
| Signature | Description |
|---|---|
from_reader(r: BinaryReader, table_length: int) → "KernTable" | |
get(left_gid: GlyphId, right_gid: GlyphId) → int | Return kern value in font units, or 0 if pair not found. |
build_lookup() → dict[tuple[int, int], int] | Build O(1) lookup dict keyed by (left_gid_value, right_gid_value). |
to_bytes() → bytes |