You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just adding unicode-range to the array of processed properties solves the issue. But unicode range normalization may be required to ensure that fonts with same unicode-range but differing notation of the unicode-range are treated as identical.
Step-by-step reproduction instructions
Declare two font files for a font-face with same parameters, except for a unicode-range.
Notice that the font face of only one font file is eventually enqueued, all the other font files will not be usable.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Closing this, as I tested manually and confirmed it was fixed.
For the test I registered two fontFace entries that had the same weight and style but different unicodeRange values. Both @font-face rules were printed on the frontend, each with the correct unicode-range:
The Fonts API was replaced by Font Face in #51770. Font Face does not generate handles, so it keeps every fontFace entry, including ones that differ only by unicode-range. FWIW, the Fonts API was later deprecated in #52485 and fully removed in #82813.
Feel free to reopen if you still see this problem.
Activity
tyxla commentedon Sep 28, 2026
Closing this, as I tested manually and confirmed it was fixed.
For the test I registered two
fontFaceentries that had the same weight and style but differentunicodeRangevalues. Both@font-facerules were printed on the frontend, each with the correctunicode-range:The Fonts API was replaced by Font Face in #51770. Font Face does not generate handles, so it keeps every
fontFaceentry, including ones that differ only byunicode-range. FWIW, the Fonts API was later deprecated in #52485 and fully removed in #82813.Feel free to reopen if you still see this problem.