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
We've encountered a problem with font variant selection in our application. Specifically, this issue arose when selecting the "ABeeZee" or "ADLaM Display" fonts. I did not have time to examine all the other fonts, but I tested from 10 to 20 and only found these 2. While these fonts appear correctly in the editor (which might require reload due to #58765, though), and their references are present in the code for the live site, they do not display as intended when viewed on the website. Instead, a default system font is shown.
Expected Behavior: The selected font variants, "ABeeZee" and "ADLaM Display", should display correctly on the live site as they do within the editor.
Step-by-step reproduction instructions
Open the Font Library modal
Select "ABeeZee" or "ADLaM Display" from Google Fonts
Apply the font and view the change in the editor (note that it appears correct within the editor).
Save changes to observe the font display.
Screenshots, screen recording, code snippet
The font (ADLaM Display) is displayed on the editor;
The font (ADLaM Display) is not displayed on the live site, while it seems to have the correct style;
Note that there were no font face outputs with document.fonts.forEach((f) => console.log(f)) on the live site.
Environment info
Gutenberg >= 17.6
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered:
I can replicate with 6.5 beta 1 but only if I select the font for an individual block. If I select something in global styles, it works! Adding to 6.5 board.
However, an issue arises with font names undergoing kebab-case conversion via _wp_to_kebab_case. Specifically, "ADLaM Display" is converted to ad-la-m-display, which mismatches its adlam-display in block settings. Consequently, this discrepancy prevents the font from being recognized as in use and thus not being added to $fonts_to_print, resulting in it not displaying on the frontend.
Description
We've encountered a problem with font variant selection in our application. Specifically, this issue arose when selecting the "ABeeZee" or "ADLaM Display" fonts. I did not have time to examine all the other fonts, but I tested from 10 to 20 and only found these 2. While these fonts appear correctly in the editor (which might require reload due to #58765, though), and their references are present in the code for the live site, they do not display as intended when viewed on the website. Instead, a default system font is shown.
Expected Behavior: The selected font variants, "ABeeZee" and "ADLaM Display", should display correctly on the live site as they do within the editor.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
The font (ADLaM Display) is displayed on the editor;
![Screenshot 2024-02-13 at 11 44 36](https://cdn.statically.io/img/private-user-images.githubusercontent.com/5287479/304279960-48f2a45c-782e-4796-b784-950e03330959.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NzY3ODEsIm5iZiI6MTcyMjk3NjQ4MSwicGF0aCI6Ii81Mjg3NDc5LzMwNDI3OTk2MC00OGYyYTQ1Yy03ODJlLTQ3OTYtYjc4NC05NTBlMDMzMzA5NTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDZUMjAzNDQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDAxMGY5OWE0MTU1ZTU3YjZjMzQyMTVlNTA5Y2MyZjljNDlkZmYwM2VkMzViZDA1OTgyNzRhM2ZhN2E0MDRiOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.CYYu-G7y3H_JWDR0MiNlitY3S08lCz4CpiVdTQwcVaQ)
The font (ADLaM Display) is not displayed on the live site, while it seems to have the correct style;
![Screenshot 2024-02-13 at 11 44 20](https://cdn.statically.io/img/private-user-images.githubusercontent.com/5287479/304279951-2d6b9b06-6cee-4943-8413-568c29348866.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NzY3ODEsIm5iZiI6MTcyMjk3NjQ4MSwicGF0aCI6Ii81Mjg3NDc5LzMwNDI3OTk1MS0yZDZiOWIwNi02Y2VlLTQ5NDMtODQxMy01NjhjMjkzNDg4NjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDZUMjAzNDQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDYxNDM4NTg0Njg2NjYxNGI1MDdlZDI0NjBjOTJmMTc0ZTFjZTJkZTU1MGZkMjdlZjlmNjQyNjExODIwYTI4MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.u5Jx2rSOD9cXEQqhynkQlAqquZlv8kqpEXYphGEnXJA)
![Screenshot 2024-02-13 at 11 44 24](https://cdn.statically.io/img/private-user-images.githubusercontent.com/5287479/304279958-59266df7-d985-4c64-ad4c-982f3f9ce017.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NzY3ODEsIm5iZiI6MTcyMjk3NjQ4MSwicGF0aCI6Ii81Mjg3NDc5LzMwNDI3OTk1OC01OTI2NmRmNy1kOTg1LTRjNjQtYWQ0Yy05ODJmM2Y5Y2UwMTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDZUMjAzNDQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjkxMDg4NGNiYWZhMTY1NmE1YWY3N2FmNGIxNWIwYTFjYzhhYWYxMzgzOWMyMWNjMjRkZjZmNWIxYjkwOTI2MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.GyOjjgnSghYbjEKWBbIxkaYzRIkRHydBPuj5ktMS8bw)
Note that there were no font face outputs with
document.fonts.forEach((f) => console.log(f))
on the live site.Environment info
Gutenberg >= 17.6
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: