mirror of
https://github.com/storytold/egui.git
synced 2026-11-19 09:01:37 +01:00
TextFormat::font_features lists OpenType features (tag, value) that the shaper applies to that section's runs, e.g. tnum for tabular figures. The list is empty by default, which shapes exactly as before, and is part of TextFormat's hash, so the galley cache keeps text with and without features apart. RichText gains font_feature() and font_features(). Tests use a 3 KB digits-only subset of Space Grotesk (OFL), whose default digits are proportional.