FontFeature.subscripts constructor
const
FontFeature.subscripts()
Enable subscripts. (subs
)
This feature causes some fonts to change some glyphs to their subscripted form.
It typically does not affect all glyphs, and so is not appropriate for generally causing all text to be subscripted.
This may override other features that substitute glyphs.
{@tool sample}
The Piazzolla font supports the subs
feature. It causes
digits to be smaller and subscripted.
** See code in examples/api/lib/ui/text/font_feature.font_feature_subscripts.0.dart ** {@end-tool}
See also:
- docs.microsoft.com/en-us/typography/opentype/spec/features_pt#subs
- FontFeature.scientificInferiors, which is similar but intended specifically for subscripts used in scientific contexts.
- FontFeature.superscripts, which is similar but for subscripting.
Implementation
const FontFeature.subscripts()
: feature = 'subs',
value = 1;