FL.objects.TTHPoint.TTHPoint

class FL.objects.TTHPoint.TTHPoint(tthpoint_or_p_or_x: TTHPoint | Point | int | None = None, mode_or_y: int | None = None)

Bases: Copyable

TTHPoint - class to represent visual TrueType points

All coordinates in TTHPoint class are set in 10.6 fixed-point format TODO: ^ I think this only applies to TTPoint, not TTHPoint

__init__(tthpoint_or_p_or_x: TTHPoint | Point | int | None = None, mode_or_y: int | None = None) None
Parameters:
  • tthpoint_or_p_or_x (TTHPoint | Point | int | None, optional) – _description_. Defaults to None.

  • mode_or_y (int | None, optional) – _description_. Defaults to None.

Methods

__init__([tthpoint_or_p_or_x, mode_or_y])

Attributes

mode

Point's mode (on-curve or off-curve).

state

Point's state (touched or not).

x

x coordinate

y

y coordinate

property mode: int

Point’s mode (on-curve or off-curve). Read-only.

Returns:

_description_

Return type:

int

property state: int

Point’s state (touched or not). Read-only.

Returns:

_description_

Return type:

int

property x: float

x coordinate

Returns:

_description_

Return type:

float

property y: float

y coordinate

Returns:

_description_

Return type:

float