Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font-feature-settings is not working for imported google fonts #7587

Open
nkkibelen opened this issue Apr 22, 2024 · 1 comment
Open

font-feature-settings is not working for imported google fonts #7587

nkkibelen opened this issue Apr 22, 2024 · 1 comment

Comments

@nkkibelen
Copy link

Hi, Can I please have some help with adding font-feature-settings? I imported the Hanken Grotesk from google fonts using this code @import "https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";

The font works, but I'm trying to changed the letter "g" format. I added the setting "font-feature-settings:"ss01" 1;" to the body tag but it seems it did not changed anything. Is there someone have the same issue with this? Thanks

@kenmcd
Copy link

kenmcd commented Apr 22, 2024

Google online web fonts only support a subset of OpenType features.
And Stylistic Sets (ssNN) are not supported.
So your only option is to host the fonts yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants