Fonts not differentiated by unicode-range
#48813
Labels
[Feature] Typography
Font and typography-related issues and PRs
[Type] Enhancement
A suggestion for improvement.
Description
Fonts that are registered with the Fonts API (including by
theme.json
) are currently not differentiated by theunicode-range
.convert_variation_into_handle
only uses thefont-weight
andfont-style
for generating a handle, notunicode-range
.https://github.com/WordPress/gutenberg/blob/trunk/lib/experimental/fonts-api/class-wp-fonts-utils.php#L53
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
unicode-range
.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.
Yes
The text was updated successfully, but these errors were encountered: