FontFeature.caseSensitiveForms constructor

const FontFeature.caseSensitiveForms()

Enable case-sensitive forms. (case)

Some glyphs, for example parentheses or operators, are typically designed to fit nicely with mixed case, or even predominantly lowercase, text. When these glyphs are placed near strings of capital letters, they appear a little off-center.

This feature, when supported by the font, causes these glyphs to be shifted slightly, or otherwise adjusted, so as to form a more aesthetically pleasing combination with capital letters.

{@tool sample} The Piazzolla font supports the case feature. It causes parentheses, brackets, braces, guillemets, slashes, bullets, and some other glyphs (not shown below) to be shifted up slightly so that capital letters appear centered in comparison. When the feature is disabled, those glyphs are optimized for use with lowercase letters, and so capital letters appear to ride higher relative to the punctuation marks.

The difference is very subtle. It may be most obvious when examining the square brackets compared to the capital A.

** See code in examples/api/lib/ui/text/font_feature.font_feature_case_sensitive_forms.0.dart ** {@end-tool}

See also:

Implementation

const FontFeature.caseSensitiveForms()
    : feature = 'case',
      value = 1;