theleagueof / raleway

An elegant variable sans-serif, with 9 static weights and Italics.
https://www.theleagueofmoveabletype.com/raleway
Other
619 stars 52 forks source link

font-feature-settings unavailable #26

Open djmtype opened 2 years ago

djmtype commented 2 years ago

The font-feature-settings are not triggering the alt character styles. For example, font-feature-settings: "salt" does nothing. I tried the variable ttf as well as woff2.

I downloaded Raleway v4.101 from the official website, not Google fonts.

If I use font-feature-settings: "salt" with a different font that supports it, like Work Sans, those settings work. So, there is nothing wrong with my browser. Using Chrome.

No errors in the devtools console and I don't have another Raleway version installed on my system.

If I disable ligatures, font-feature-settings: "liga" 0;, I can see them turned off, so it's respecting some settings.

djmtype commented 2 years ago

Furthermore, if I download the font from you site, https://www.theleagueofmoveabletype.com/raleway, this version works as advertised. Unfortunately, I have no way of knowing which Raleway version this is.

BTW, The version I downloaded from Google fonts doesn't work properly either where font-feature-settings is concerned.

When declaring salt, I expected the a would be earless, and the w less fancy according to the demo page: https://www.theleagueofmoveabletype.com/raleway Screen Shot 2021-12-01 at 4 53 03 PM

nvitucci commented 1 year ago

@djmtype I had the same issue. I've used https://fontdrop.info to inspect the content of the .woff files, and it turns out that your desired features are enabled using ss02 and ss09 instead (at least with release 4.101).

djmtype commented 1 year ago

Thanks @nvitucci