Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.text.FeatureRange class

OpenType feature for a text range

Special methods

def __init__(self, feature: Feature, value: int = True) -> None
Construct for the whole text
def __init__(self, arg0: tuple[Feature, int], /) -> None
Construct for the whole text

Properties

feature: Feature get
Feature to control
is_enabled: bool get
Whether to enable the feature
value: int get
Feature value to set