Change the Google fonts to support additional characters

The Google fonts we’ve included are set to use the basic latin character set. If you want to support characters from other languages you’ll need to modify the includes/framework.php file and specify which other subsets you want to use for your chosen font. In the file search for subset, you be taken to the subset for the first Google font, find the font you are using from the array below this. Modify the string ‘latin’ and add additional subsets after this separated by a comma, the available subsets for each font are shown and were correct at the time of writing. Some fonts do not have any other subsets available. For example to add the Latin Extended subset to the Dosis font, make the change highlighted in the code below.

1
2
3
4
56
'dosis' => array(
    'type' => 'google',
    'name' => 'Dosis',
    'family' => 'Dosis',
    'subset' => 'latin,latin-ext'),
'dosis' => array(
    'type' => 'google',
    'name' => 'Dosis',
    'family' => 'Dosis',
    'subset' => 'latin,latin-ext'
),

Still having trouble? Head over to the forums.

Forums