0
Welcome Guest! Login
0 items Join Now

Choosing a Google font's Local Character Sets

    • 's Avatar

    Choosing a Google font's Local Character Sets

    Posted 12 years 1 week ago
    • Hey guys,

      Please add choosing a Google font's local character sets to Gantry core!!!!
      It is extremely important for your 'non-latin' subscribers! :evil:

      I've just solved a trouble in Limiere template with a Google font not affecting Cyrillic symbols, and I think other templates might have the same problem. What I did is copied a gantry core font.php file to ../my-template/features/ directory and edited a needed line (#113) which loads a Google font .css file:
      Before:
      $gantry->addStyle('//fonts.googleapis.com/css?family=' . str_replace(" ", "+", $name) . $variant);
      After:
      $gantry->addStyle('//fonts.googleapis.com/css?family=' . str_replace(" ", "+", $name) . '&subset=latin,cyrillic');

      This is definitely a temporary solution for those who have the same issue, but IMHO this should be included in a Gantry core.
      Hopefully someone competent from your team could add this to a list of further upgrades please!

Time to create page: 0.058 seconds