[Styles] Webfonts enqueued using styles JSON files are not loaded #39702
Labels
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Webfonts declared in custom styles json files are not enqueued. No error is thrown, but the fonts are not loaded in.
To reproduce:
settings.typography.fontFamilies
.Example PR here: WordPress/theme-experiments#304
In the PR example, the same code works properly when pasted into
theme.json
instead ofstyles/variation.json
.Screenshots:
The correct font for the variation should be DM Sans. Instead, the default
sans-serif
fallback is being used, and no network call to the DM Sans font files is being made.The text was updated successfully, but these errors were encountered: