Font Library: Uploaded fonts do not always display correctly until after page refresh #55018
Labels
[Feature] Typography
Font and typography-related issues and PRs
[Type] Bug
An existing feature does not function as intended
Description
After uploading some custom fonts, the font management UI displays the new font name with a fallback font face (e.g. system serif font). Refreshing or navigating out and back to the editor resolves this, but I expect the newly uploaded font to be accurately represented in the UI without needing to refresh.
This behavior is intermittent, and can vary depending on the font. Here are some examples I tested (all fonts downloaded from Google Fonts for manual upload, except where noted):
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Figure 1: Demonstration of font display after upload, then before and after refreshing the editor screen.
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: