google / fonts

Font files available from Google Fonts, and a public issue tracker for all things Google Fonts
https://fonts.google.com
18.03k stars 2.6k forks source link

Fira Sans CDN Font does not support "tnum" feature #1582

Open mofojed opened 6 years ago

mofojed commented 6 years ago

When Fira Sans font is included in a page using the CDN link, the font-feature-settings: "tnum" CSS property doesn't work.

Oddly enough, if I download the Fira Sans font from Google's site and install it locally, the feature setting works: https://fonts.google.com/specimen/Fira+Sans?selection.family=Fira+Sans It also works if I link the font from Mozilla's CDN.

It's only when I link to Google's CDN and don't have the font installed locally. I've made a plnkr to demonstrate the issue: https://plnkr.co/edit/SnSm7siVrk5AiQq9NDUK?p=preview

davelab6 commented 6 years ago

We subset out OpenType features to improve latency. For now, self hosting or using another font CDN is the only way to use discretionary OpenType features.

laerm0 commented 5 years ago

Should we close, @davelab6 ?

lundmikkel commented 4 years ago

Why not allow us to include them with some kind of options? Say https://fonts.googleapis.com/css?family=Montserrat:300,400,500&display=swap&settings=tnum.