Reputation: 63
What is the difference between font-feature-settings
and font-variant
in css fonts?
Does anybody know? Thanks a lot everyone.
Upvotes: 3
Views: 1610
Reputation: 927
Look at these two CSS rules, both these rules does the same thing,
font-feature-settings: "smcp" on;
font-variant: small-caps;
but since font-feature-settings is reserved for more specialized operations which can't be achieved by any other manner you should stick to font-variant when there arrives an option to choose between them. Don't kill a fly with Bazooka.
In this case CSS tricks will be more helpful for you,
https://css-tricks.com/almanac/properties/f/font-variant/
https://css-tricks.com/almanac/properties/f/font-feature-settings/
and this too https://webkit.org/blog/5735/css-font-features/
Upvotes: 2