OpenType features
Ligatures, figures, fractions, alternates: what each feature does and how to turn it on.
Openbase Sans and Openbase Drawn share these features. Openbase Mono has none on purpose: one shape per character.
| Tag | Feature | What it does | Default |
|---|---|---|---|
| calt | Contextual alternates | Cycles three drawings of every letter (Openbase Drawn). | On |
| case | Case-sensitive forms | Raises the colon and bullet to sit with capitals. | Off |
| ccmp | Glyph composition | Builds accented letters from base + mark. | On |
| dnom | Denominators | Lowered figures for building fractions. | Off |
| frac | Fractions | Builds diagonal fractions from figures and a slash. | Off |
| liga | Ligatures | Joins ff, fi, fl, ffi, ffl, rt and rf. On by default. | On |
| locl | Localized forms | Language-specific shapes, picked from the lang attribute. | On |
| numr | Numerators | Raised figures for building fractions. | Off |
| ordn | Ordinals | Turns a or o after a figure into an ordinal indicator, as in 1ª. | Off |
| pnum | Proportional figures | Digits with their natural widths, for text. | Off |
| sups | Superscripts | Raised, smaller figures. | Off |
| tnum | Tabular figures | Every digit the same width, for tables and prices. | Off |
| zero | Distinct zero | An alternate zero that never reads as O. | Off |
In CSS
.price { font-variant-numeric: tabular-nums; } /* tnum */
.recipe { font-variant-numeric: diagonal-fractions; } /* frac */
.code { font-feature-settings: "zero" 1; }
.label { font-feature-settings: "case" 1; }Prefer the font-variant-* properties where they exist; use font-feature-settings for the rest.
In Flutter
OpenbaseFonts.sans(fontSize: 14).copyWith(
fontFeatures: const [FontFeature.tabularFigures(), FontFeature('zero')],
);