Google font weight's missing

Hi there,

I’d like to try out the Roboto Flex font from Google, but when I choose the font in the font manager, only font weight Normal (400) and bold are available.

How can I get the other font-weight styles working?

When I upload the font as a custom font style to my site, I get the following error in the font manager when I try to choose the font:

/*PHP Warning: Undefined array key "_id" in /home/www/soelvahof/wp-content/themes/pro/cornerstone/includes/classes/Services/GlobalFonts.php on line 312.*//*PHP Warning: Undefined array key "_id" in /home/www/soelvahof/wp-content/themes/pro/cornerstone/includes/classes/Services/GlobalFonts.php on line 312.*//*PHP Warning: Undefined array key "_id" in /home/www/soelvahof/wp-content/themes/pro/cornerstone/includes/classes/Services/GlobalFonts.php on line 312.*/PHP Warning: Undefined array key "_id" in /home/www/soelvahof/wp-content/themes/pro/cornerstone/includes/classes/Services/GlobalFonts.php on line 312. PHP Warning: Undefined array key "_id" in /home/www/soelvahof/wp-content/themes/pro/cornerstone/includes/classes/Services/GlobalFonts.php on line 312. PHP Warning: Undefined array key "_id" in /home/www/soelvahof/wp-content/themes/pro/cornerstone/includes/classes/Services/GlobalFonts.php on line 312.

I checked and there’s a new Google Fonts API we aren’t tapping into for weights. Roboto Flex it looks like only uses that for weights unfortunately. Thanks for bringing this to our attention!

As for the _id issue. I’d check to make sure the custom font doesn’t have any special characters in the name. Some fonts just won’t work in the web as well and re uploading can sometimes help. If something is broken too, if you go to the dev tools “Font Items” you’ll find an item with a missing “_id”. Adding a new one and pressing the play button will fix it.

Thanks for your reply @charlie charlie

You are most welcome @xoa

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.