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

Guidance for using variable font in CSS #16

Open
danglingneuron opened this issue Jan 27, 2023 · 0 comments
Open

Guidance for using variable font in CSS #16

danglingneuron opened this issue Jan 27, 2023 · 0 comments

Comments

@danglingneuron
Copy link

Salam:
I have tried the variable font but don't know the settings to elongate the words as you have done on your website.

src: url('fonts/digitalkhatt/digitalkhatt-cff2.otf') format('opentype-variations');

I have had no success using CSS properties or the font variation axis tags. I am also not aware of any custom axis tags you might have used in the font for the variations to work. Please provide guidance!

/* with their CSS properties /
font-weight: 637;
font-stretch: 100;
/
with the font-variation-settings property */
font-variation-settings: "wght" 637, "wdth" 100;

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

No branches or pull requests

1 participant