• If there is no settings field in the theme.json file, then when adding a font via “Manage Theme Fonts” I see the error “Undefined array key “settings” in..”.

    Note: despite the error, the font is still added.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matias Benedetto

    (@mmaattiiaass)

    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.

    Thread Starter Andreslav

    (@andreslav)

    Hi @mmaattiiaass, thanks!

    Thread Starter Andreslav

    (@andreslav)

    Hi @mmaattiiaass, I noticed two more strange things

    1. The font in the preview is incorrect. Photo
    2. 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

    Thread Starter Andreslav

    (@andreslav)

    The second point, apparently, is not related to this plugin. Styles (wp-webfonts-inline-css) are generated by wordpress.

    Plugin Author Matias Benedetto

    (@mmaattiiaass)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Found an error’ is closed to new replies.