-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Library: Some installed Google fonts don't display in editor or frontend #54706
Comments
In earlier versions, I was able to replicate this with the Poppins font but can no longer with GB 16.7! I am getting feedback in the FSE Outreach Program about this though:
I'll ask what font it was that was uploaded and report back. |
Hey, @annezazu. the font that didn't display in the Editor is Dela Gothic One. DelaGothicOne-Regular.ttf Also, Sedgwick Ave Display didn't refresh the heading block when I switched the font from Global styles. SedgwickAveDisplay-Regular.ttf
|
Thanks for looping back here! Noting that I'm suddenly experiencing this with Inclusive Sans https://fonts.google.com/specimen/Inclusive+Sans after it was repeatedly working. Replicated in GB 16.7 + 6.4 Beta 1: |
Related issue: WordPress/create-block-theme#468 The related problem affects local fonts as well, and one cause is the font name having invalid characters, or character combinations (such as a number preceded by a space) which are not valid |
Description
Some fonts display correctly in the Typography fonts list and Font Library dialog, but the faces are not applied in the editor or the frontend. At first I thought it might be related to mixed alpha/numeric characters in the font name, but received inconsistent results.
I've tested the following fonts, assigned to Headings in the editor, before and after refreshing the editor and checking the site frontend. Included are the generated CSS variables, which can differ between when the font is assigned and reloading the page 🤔:
var(--wp--preset--font-family--gothic-a1)
var(--wp--preset--font-family--libre-barcode-128-text)
var(--wp--preset--font-family--press-start-2-p)
var(--wp--preset--font-family--press-start-2p)
var(--wp--preset--font-family--rock-3-d)
var(--wp--preset--font-family--rock-3d)
var(--wp--preset--font-family--rubik-80-s-fade)
var(--wp--preset--font-family--rubik-80s-fade)
var(--wp--preset--font-family--vt-323)
var(--wp--preset--font-family--vt323)
(stopped displaying properly after save/reload)Step-by-step reproduction instructions
For Steps 5-8, you might also check the generated CSS variables assigned to headings.
Screenshots, screen recording, code snippet
This video shows installation of VT323 and the odd behavior between assigning it to Headings and saving global styles. It also shows how neither Press Start P2 or Libre Barcode 128 Text display correctly when assigned in the editor.
google-fonts-with-display-issue.mp4
Environment info
trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: