2 ms·
It’s 2015--have the browser use real small-caps if the font supports them. Even if it doesn’t, you’re probably better off letting the browser make them instead
by alwillis 11y ago
It’s 2015--have the browser use real small-caps if the font supports them. Even if it doesn’t, you’re probably better off letting the browser make them instead of you creating them.
font-feature-settings: “smcp”;
on an element turns lowercase letters into small-caps;
font-feature-settings: “c2sc”;
turns uppercase letters into small-caps.
More at https://drafts.csswg.org/css-fonts/#font-variant-caps-prop https://drafts.csswg.org/css-fonts/#font-variant-caps-prop.
Safari’s renderring engine WebKit just got font-feature-settings: support: https://twitter.com/webkit/status/631827777319256064 https://twitter.com/webkit/status/631827777319256064.