FL.objects.Guide.Guide
- class FL.objects.Guide.Guide(guide_or_position: Guide | int | None = None, angle: float = 0.0)
Bases:
Copyable- __init__(guide_or_position: Guide | int | None = None, angle: float = 0.0) None
Guide - class to represent guideline
- Guide()
generic constructor, creates a Guide with zero coordinates
- Guide(Guide)
copy constructor
- Guide(position)
creates a Guide and assigns position
- Guide(position, angle)
creates a Guide and assigns position and width values
Methods
Transform(m)applies Matrix transformation to the Guide
TransformLayer(m, layernum)applies Matrix transformation to the selected layer of the Guide
__init__([guide_or_position, angle])Guide - class to represent guideline
fake_add_axis()fake_angle_to_width(angle)fake_remove_axis(interpolation)fake_width_to_angle(width)Attributes
The angle of the guideline.
Guide's parent object, Glyph.
The position of the guideline.
positionsThe "width" of the guideline.
The "widths for each master.
- Transform(m: Matrix) None
applies Matrix transformation to the Guide
- Parameters:
m (Matrix) – _description_
- TransformLayer(m: Matrix, layernum: int) None
applies Matrix transformation to the selected layer of the Guide
- Parameters:
m (Matrix) – _description_
- property angle: float
The angle of the guideline.
- Returns:
The angle of the guideline in degrees for the first master
- Return type:
- property parent: Glyph | None
Guide’s parent object, Glyph. If the guide is global, parent is an orphan Glyph.
- Returns:
The parent object.
- Return type:
Glyph | None
- property position: int
The position of the guideline. Setting the position sets the same value for all masters.
- Returns:
Return position of the guideline for the first master
- Return type: