feature_t

The #hb_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.

Constructors

this
this(hb_feature_t* hb_feature, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

String
void String(char[] buf)

Converts a #hb_feature_t into a %NULL-terminated string in the format understood by hb_feature_from_string(). The client in responsible for allocating big enough size for @buf, 128 bytes is more than enough.

getStruct
void* getStruct()

the main Gtk struct as a void*

getfeature_tStruct
hb_feature_t* getfeature_tStruct(bool transferOwnership)

Get the main Gtk struct

Properties

end
uint end [@property getter]
uint end [@property setter]

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

start
uint start [@property getter]
uint start [@property setter]

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

tag
hb_tag_t tag [@property getter]
hb_tag_t tag [@property setter]

The #hb_tag_t tag of the feature

value
uint value [@property getter]
uint value [@property setter]

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.

Static functions

getType
GType getType()

Variables

hb_feature
hb_feature_t* hb_feature;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta