WordPress/gutenberg

Custom font upload not working

Open

#72.265 geöffnet am 11. Okt. 2025

Auf GitHub ansehen
 (15 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (3.893 Forks)batch import
Good First Issue[Feature] Font Library[Status] In Progress[Type] Bug

Repository-Metriken

Stars
 (9.607 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 12T 18h) (509 gemergte PRs in 30 T)

Beschreibung

Description

When trying to install this font it wouldn't complete and instead we are seeing a browser console error.

Step-by-step reproduction instructions

  1. Go to Appearance > Editor
  2. Styles > Fonts
  3. Try uploading this font:

AaDaoShuRi-LangManHeiTi-2.ttf.zip

Screenshots, screen recording, code snippet

The console renders:

Uncaught (in promise) SyntaxError: Invalid font data in ArrayBuffer

Th workaround is to convert it to a .woff2. I've used https://transfonter.org/

Environment info

WordPress 6.9 and the current stable version

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

Contributor Guide