Selecting Roboto as font removes default Roboto Condensed

Posted in: Newspaper
Post count: 21

Steps to reproduce:
1. In the theme panel – Custom Typography all font families should be set to default font.
2. Reload your wordpress site and check the source code. In the head, you’ll find “link rel=’stylesheet’ id=’google-roboto-cond-css’ …” loading Roboto Condensed.
3. Back in the theme panel, select “Roboto” for the post title font and save the settings.
3. Reload your wordpress site and check the source code again. In the head, the google-robot-cond-css line is missing now although the font is still used in the CSS. An additional line “link rel=’stylesheet’ id=’google-fonts-style-css’ …” appears loading only “Roboto”.

The error is caused by functions.php line 77. The list of user fonts is checked for g_521, and only if it’s not included Roboto Condensed is loaded. However, g_521 is Roboto (as indicated in the commment). This leads to the behaviour that the default Roboto Condensed is not loaded if Roboto is selected anywhere.

Solution: Change “g_521” to “g_522” there!

Thanks.

Post count: 6600

Hi,

Thanks for reporting this and for suggested solution. We will investigate this and fix in the next version.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.