Blend2D
2D Vector Graphics Engine
Font feature settings [C++ API].
Tests whether the container is empty, which means that no tag/value pairs are stored in it.
Returns the number of feature tag/value pairs stored in the container.
Returns the container capacity
Returns a normalized view of tag/value pairs as an iterable BLFontFeatureItem
array in the output view out
.
BLFontFeatureItem
values will be created from the underlying SSO representation and BLFontFeatureSettingsView::data
will point to BLFontFeatureSettingsView::ssoData
. If the container is dynamic, BLFontFeatureSettingsView::ssoData
won't be initialized and BLFontFeatureSettingsView::data
will point to the container's data. This means that the view cannot outlive the container, and also during iteration the view the container cannot be modified as that coult invalidate the entire view. Tests whether the settings contains the given featureTag
.
Returns the value associated with the given featureTag
.
If the featureTag
doesn't exist or is invalid BL_FONT_FEATURE_INVALID_VALUE is returned.
Sets or inserts the given featureTag
to the settings, associating the featureTag
with value
.
The featureTag
must be valid, which means that it must contain 4 characters within ' ' to '~' range - [32, 126] in ASCII. If the given featureTag
is not valid or value
is out of range (maximum value is 65535
) BL_ERROR_INVALID_VALUE is returned.
The following tags only support values that are either 0 (disabled) or 1 (enabled):
Trying to use any other value with these tags would fail with BL_ERROR_INVALID_VALUE error.
Removes the given featureTag
and its associated value from the settings.
Nothing happens if the featureTag
is not in the settings (BL_SUCCESS is returned).
Tests whether this font feature settings is equal to other
- equality means that it has the same tag/value pairs.