Skip to content

Wrong URLs of fonts in theme #74087

@iamtakashi

Description

@iamtakashi

Description

With the Gutenberg trunk, the URLs of the fonts in the theme aren't full, so the fonts don't show up because they're blocked.

Not allowed to load local resource:
file:///assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2

Image

Image

The URL for the font isn't the usual, full URL.
Image

I've seen this issue in both Chrome and Firefox. If I deactivate Gutenberg trunk or use 22.3.0, the font gets loaded correctly.

Image

Step-by-step reproduction instructions

  1. Activate TT4 with the Gutenberg trunk activated.
  2. Open the site
  3. Disable the Gutenberg trunk.
  4. Open the site in a different tab
  5. Notice the difference like the screenshots above.

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.9
Gutenberg trunk
Chrome, Firefox.

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions