KernTable
Overview
KernTable is a class in Aspose.Font FOSS for Python.
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 |