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

Multiple self-hosted fonts on Theme #16634

Closed
iakovosvo opened this issue Jul 18, 2019 · 1 comment · Fixed by #16639
Closed

Multiple self-hosted fonts on Theme #16634

iakovosvo opened this issue Jul 18, 2019 · 1 comment · Fixed by #16639

Comments

@iakovosvo
Copy link

iakovosvo commented Jul 18, 2019

What is the best way to customize the theme with multiple self-hosted fonts? I have followed the instructions from the documentation on how to override the global font with one self-hosted font and it works well. However, am not sure how to use multiple self-hosted fonts. Adding an array of two font objects on @font-face seems to do exactly what I want but my linter complains since @font-face expects an object.

I want to be able to use the Regular font on typography.fontFamily and the Bold on typography.h1.

@merceyz
Copy link
Member

merceyz commented Jul 18, 2019

Adding an array of two font objects on @font-face seems to do exactly what I want but my linter complains since @font-face expects an object.

Potentially a duplicate of #15771

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

Successfully merging a pull request may close this issue.

3 participants