Title: Found an error
Last modified: March 17, 2023

---

# Found an error

 *  [Andreslav](https://wordpress.org/support/users/andreslav/)
 * (@andreslav)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/found-an-error-2/)
 * 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](https://wordpress.org/support/users/mmaattiiaass/)
 * (@mmaattiiaass)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/found-an-error-2/#post-16569701)
 * Hi [@andreslav](https://wordpress.org/support/users/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](https://github.com/WordPress/create-block-theme/pull/281)
   It will be fixed in the next release of the plugin.
 *  Thread Starter [Andreslav](https://wordpress.org/support/users/andreslav/)
 * (@andreslav)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/found-an-error-2/#post-16569844)
 * Hi [@mmaattiiaass](https://wordpress.org/support/users/mmaattiiaass/), thanks!
 *  Thread Starter [Andreslav](https://wordpress.org/support/users/andreslav/)
 * (@andreslav)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/found-an-error-2/#post-16571962)
 * Hi [@mmaattiiaass](https://wordpress.org/support/users/mmaattiiaass/), I noticed
   two more strange things
    1. The font in the preview is incorrect. [Photo](https://ibb.co/zHDX0L1)
    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](https://wordpress.org/support/users/andreslav/)
 * (@andreslav)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/found-an-error-2/#post-16572938)
 * The second point, apparently, is not related to this plugin. Styles (wp-webfonts-
   inline-css) are generated by wordpress.
 *  Plugin Author [Matias Benedetto](https://wordpress.org/support/users/mmaattiiaass/)
 * (@mmaattiiaass)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/found-an-error-2/#post-16578287)
 * Hi [@andreslav](https://wordpress.org/support/users/andreslav/) 
   About this item:”
   The font in the preview is incorrect. [Photo](https://ibb.co/zHDX0L1) “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.

 * ![](https://ps.w.org/create-block-theme/assets/icon-256x256.png?rev=2777957)
 * [Create Block Theme](https://wordpress.org/plugins/create-block-theme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/create-block-theme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/create-block-theme/)
 * [Active Topics](https://wordpress.org/support/plugin/create-block-theme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/create-block-theme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/create-block-theme/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Matias Benedetto](https://wordpress.org/support/users/mmaattiiaass/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/found-an-error-2/#post-16578287)
 * Status: not resolved