Hi @andreslav, thanks for reporting this!
I could reproduce the issue you described and submitted a potential fix. https://github.com/WordPress/create-block-theme/pull/281
It will be fixed in the next release of the plugin.
Hi @mmaattiiaass, I noticed two more strange things
- The font in the preview is incorrect. Photo
- In Edge and Chrome (Firefox is fine), I get the thinnest version of the font, regardless of the given weight. It has something to do with local() (if removed, the problem disappears) and the fact that I have locally set the font “Montserrat-VariableFont_weight”.
Windows, Microsoft Edge 111.0.1661.41, Chrome 111.0.5563.65
The second point, apparently, is not related to this plugin. Styles (wp-webfonts-inline-css) are generated by wordpress.
Hi @andreslav
About this item:
” The font in the preview is incorrect. Photo “
It seems like the font was not loaded correctly by the browser. It can happen for a variety of reasons.
– Is this happening only with Montserrat font?
– Have you try adding other google fonts?
– Are the fonts downloaded to your theme font assets folder (<your-theme-slug>/assets/fonts) ?
– Could you copy the fontFamilies part of your theme.json file?
Thanks!