-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fonts file format #113
Comments
@JohnPixle I was looking into it but Google Fonts doesn't give you the woff or woff2 file of any fonts directly. There are two ways to go about it:
Let me know what you think. |
@HardeepAsrani I think I found a better UI to help us get the WOFF fonts 😄 : https://gwfh.mranftl.com/fonts Regarding compatibility, I see the WOFF and WOFF2 file formats is safe: https://caniuse.com/woff Do we need to include both file formats? I don't think so, right? I can collect the fonts in your suggested format and share them here, and if you can replace them in the theme it would be great. Let me know your thoughts! |
I managed to get all the variable weight fonts that we use in the theme as WOFF2 through this site. Original size of the fonts folder was 5.7 MB I have the families in the zip below, you should be able to replace them in the theme code. Let me know if you need further help! |
Given the latest updates on WP with google fonts, I am not sure i we need to further pursue this. |
@JohnPixle We can simply register them like this: https://make.wordpress.org/core/2024/03/14/new-feature-font-library/ Which might be nice but we need to keep in mind that the Font Library works for latest WP version only and not for older versions where we still need to have the Fonts. |
hey @HardeepAsrani can you review this comment on the Neve FSE repo?
https://wordpress.org/support/topic/its-fantastic-so-far-except-in-the-fonts/
If it makes sense, I am ok with using the .woff2 file, BUT when I download a font file from google, I only see the ttf version.
let me know your thoughts!
The text was updated successfully, but these errors were encountered: