Module font_features

Module font_features 

Source
Expand description

Font features and variation types.

Macros§

font_variations
Initialize a FontVariations map.

Structs§

CharVariant
All possible char_variant features (cv00..=cv99).
FontFeature
Represents a feature in a FontFeatures configuration.
FontFeatureExclusiveSet
Represents a set of exclusive boolean in a FontFeatures configuration, only one of the feature is enabled at a time.
FontFeatureExclusiveSets
Represents a set of exclusive boolean in a FontFeatures configuration, one or more of the features can be active at the same time but they always map to a single state.
FontFeatureName
Name of a font feature.
FontFeatureSet
Represents a set of features in a FontFeatures configuration, the features state is managed together.
FontFeatureState
State of a font feature.
FontFeatures
Font features configuration.
FontFeaturesBuilder
A builder for FontFeatures.
FontVariationName
Name of a font variation axis.
FontVariations
A small map of font variations.

Enums§

CapsVariant
Font capital letters variant features.
CnVariant
Logographic glyph variants for Chinese fonts.
EastAsianWidth
The sizing and spacing of figures used for East Asian characters.
FontPosition
Sub-script and super-script variants.
FontStyleSet
All possible style_set features.
JpVariant
Logographic glyph variants for Japanese fonts.
NumFraction
Font numeric fraction features.
NumSpacing
Font numeric spacing features.
NumVariant
Font numeric variant features.

Constants§

FEATURE_DISABLED
The raw value used when a feature is set to false.
FEATURE_ENABLED
The raw value used when a feature is set to true.

Traits§

FontFeatureExclusiveSetState
Represents enum like types that represents a exclusive set of features + Auto.
FontFeatureExclusiveSetsState
Represents enum like types that represents a exclusive set of features + Auto. Some variants can have multiple features.

Type Aliases§

RFontFeatures
Finalized FontFeatures.
RFontVariations
Finalized FontVariations.