FL.objects.KerningPair.KerningPair
- class FL.objects.KerningPair.KerningPair(kerningpair_or_index: KerningPair | int | None = None, value: int = 0)
Bases:
CopyableClass to represent kerning pair. This class is Multiple Master-compatible.
- __init__(kerningpair_or_index: KerningPair | int | None = None, value: int = 0) None
- KerningPair()
generic constructor, creates an empty KerningPair
- KerningPair(KerningPair)
copy constructor
- KerningPair(index)
creates a KerningPair to glyph referenced by index but zero value
- KerningPair(index, value)
creates a KerningPair to glyph referenced by index and assigns value
- Parameters:
kerningpair_or_index (KerningPair | int | None, optional) – _description_. Defaults to None.
value (int, optional) – _description_. Defaults to 0.
Methods
__init__([kerningpair_or_index, value])KerningPair()
fake_add_axis()fake_remove_axis(interpolation)Attributes
fake_parentindex of right glyph of the pair
KerningPair's parent object, Glyph.
value of the pair
list of values for each master