Google fonts with spaces in their name are not quoted
Hello,
Can you please make a change to your style.php file to ensure all fonts are surrounded by quote marks, handling Google fonts which have spaces in them?
For example, "Baloo 2" is represented as follows:
font-family:Baloo 2,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif
Which breaks in the browser due to the space.
Adding quotes on line 70 of style.php resolves the issue:
$fonts[$font_k] = str_replace('#', '', $font_v) .',';
becomes
$fonts[$font_k] = '"'.str_replace('#', '', $font_v) .'",';
Thanks
Comments
I think it might also be more related to these tags ? -apple-system, BlinkMacSystemFont
Those tags seems to fail CSS validation
Hi,
Thanks for reporting. I have passed this information to the dev team, and we will take a closer look at it.
Best regards
Change for that will be available in the next update.
Best regards