• When trying to assign pair of Google fonts in Customizr theme options, the non-Latin text on website is displayed with Times New Roman font instead of selected because cyrillic font subset for selected fonts is not loaded (btw Google Chrome for some reason loads full range of font subsets from fonts.googleapis.com while other browsers don’t).

    I tried to modify class-fire-init.php by adding font subset:
    '_g_alegreya_roboto' => array( 'Roboto & PT Sans' , 'Roboto+Condensed&subset=latin,cyrillic|PT+Sans&subset=latin,cyrillic' ),

    The fonts are loaded and subsets too however css names of fonts become corrupted, like
    font-family: 'PT+Sans&subset' thus they are not displayed.

    Please suggest how to correctly load cyrillic subset for Google fonts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter crypto

    (@crypto)

    Sorry, the code above works only for Google Chrome and only when you add amp; after each & sign which result to loading all available character sets for 1st font, all browsers load only 1st font with latin character set (excl Chrome).

    You mast add &subset=latin,cyrillic in line 139 class-fire-admin_init.php and in line 409 class-fire-resources.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Fonts and cyrillic character subset’ is closed to new replies.