Features

Must Override

BaseFeatures._get_text() str | None[source]

Get the features text.

This is the environment implementation of the BaseFeatures.text property getter.

Returns:

_empty. The value will be normalized with normalizers.normalizeFeatureText.

Raises:

NotImplementedError – If the method has not been overridden by a subclass.

Important

Subclasses must override this method.

BaseFeatures._set_text(value: str | None) None[source]

Set the features text.

Description

This is the environment implementation of the BaseFeatures.text property setter.

Parameters:

value – A `AFDKO FEA formatted

<https://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html>`_ str or None. The value will have been

Raises:

NotImplementedError – If the method has not been overridden by a subclass.

Important

Subclasses must override this method.

May Override

BaseFeatures._init(*args: Any, **kwargs: Any) None

Initialize the native object.

This is the environment implementation of BaseObject.__init__.

Parameters:
  • *args – Any positional arguments.

  • **kwargs – Any keyword arguments.

Note

Subclasses may override this method.

BaseFeatures.copyData(source: BaseObjectType) None

Copy data from source into the current object.

Note

Subclasses may override this method. If so, they should call the super.