Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24476

    Hello,

    is it possible to setup Open Sans font in the theme with Extended Latin subset? With default configuration I don’t have all characters needed for Croatian language.

    Regards,

    Darko

    #123573

    Yes – use following code and add it to the top of functions.php (after global $avia_config;):

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans:400,600&subset=latin,latin-ext';
    return $fonts;
    }

    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Open Sans'] = 'Open Sans:400,600&subset=latin,latin-ext';
    return $fonts;
    }

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Google fotns with Extended Latin subset’ is closed to new replies.