FL.objects.TTStem.TTStem
- class FL.objects.TTStem.TTStem(ttstem_or_width: TTStem | int | None = None, upm: int | None = None)
Bases:
CopyableTTStem - class to represent a TrueType stem definition
TTStem.__doc__ reports only ‘TTStem’ … so use this information with care
- __init__(ttstem_or_width: TTStem | int | None = None, upm: int | None = None) None
- Parameters:
- Raises:
RuntimeError – When the arguments don’t match the expectations.
Methods
__init__([ttstem_or_width, upm])fake_deserialize(data)fake_recalc_ppms(width, upm)Calculate the ppms at which the scaled stem width will round up to the next pixel
Attributes
Name of the stem
From this ppm-size the stem becomes 2 pixels wide
From this ppm-size the stem becomes 3 pixels wide
From this ppm-size the stem becomes 4 pixels wide
From this ppm-size the stem becomes 5 pixels wide
From this ppm-size the stem becomes 6 pixels wide
Width of the stem
- fake_recalc_ppms(width: int, upm: int) None
Calculate the ppms at which the scaled stem width will round up to the next pixel
- property ppm2: int
From this ppm-size the stem becomes 2 pixels wide
- Returns:
_description_
- Return type:
- property ppm3: int
From this ppm-size the stem becomes 3 pixels wide
- Returns:
_description_
- Return type:
- property ppm4: int
From this ppm-size the stem becomes 4 pixels wide
- Returns:
_description_
- Return type:
- property ppm5: int
From this ppm-size the stem becomes 5 pixels wide
- Returns:
_description_
- Return type: