feature_t#

class feature_t(*args, **kwargs)#

The feature_t is the structure that holds information about requested feature application. The feature will be applied with the given value to all glyphs which are in clusters between start (inclusive) and end (exclusive). Setting start to HB_FEATURE_GLOBAL_START and end to HB_FEATURE_GLOBAL_END specifies that the feature always applies to the entire buffer.

Fields#

class feature_t
end#

The cluster to end applying this feature setting (exclusive).

start#

The cluster to start applying this feature setting (inclusive).

tag#

The tag_t tag of the feature

value#

The value of the feature. 0 disables the feature, non-zero (usually 1) enables the feature. For features implemented as lookup type 3 (like ‘salt’) the value is a one based index into the alternates.