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, stylesets #243

Open
NinaFan0824 opened this issue Apr 19, 2022 · 4 comments
Open

font-feature-settings, stylesets #243

NinaFan0824 opened this issue Apr 19, 2022 · 4 comments

Comments

@NinaFan0824
Copy link

Hi there,

I wonder how many stylesets does public sans have? In figma, it looks like there's an alternate character style of “g” by usingfont-feature-settings: 'ss02' on, 'ss06' on, 'salt' on, 'ss01' on;, but it's not working on chrome.

Could you help to make it more clear for me?

Thanks a lot.

Screenshot at Apr 19 14-42-53

@kenmcd
Copy link

kenmcd commented Apr 20, 2022

I wonder how many stylesets does public sans have?

Just one stylistic set - ss01 (salt is the same)
And ss01 only affects the g and the l.

ss01 and salt

@NinaFan0824
Copy link
Author

Screenshot at Apr 20 16-28-16
Screenshot at Apr 20 16-29-00

I tried this, not working. Did I write it wrong?

@kenmcd
Copy link

kenmcd commented Apr 20, 2022

Screenshot at Apr 20 16-28-16 Screenshot at Apr 20 16-29-00

I tried this, not working. Did I write it wrong?

Are you trying this using fonts from Google Fonts, or locally served?
Google Fonts API does not support stylistic sets (currently, AFAIK).
So if you want to use ss01 you will need to host the fonts yourself.

@NinaFan0824
Copy link
Author

Thanks, that makes sense. Will try local fonts then.

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

No branches or pull requests

3 participants