Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14248

    why ? for headings i use open sans, which support greek

    do i have to hack choicesincludesadminregister-admin-options.php file or/and choicesframeworkphpclass-style-generator.php ?

    plz. give a solution

    #82642

    any ideas ?

    #82643

    Hi,

    I’m not sure if/what you would need to do so I’m going to flag this for the rest of the support team to see if they may know.

    Regards,

    Mya

    #82644

    You’ll need to hack the core files in this case – open up choicesframeworkphpclass-style-generator.php and search for:

    $this->extra_output .= '<link id="google_webfont_'.$this->webfont_count.'" rel="stylesheet" type="text/css" href="'.$prefix.'://fonts.googleapis.com/css?family='.str_replace(' ','+',$rule_split[0]).'" />';

    replace the code with:

    $this->extra_output .= '<link id="google_webfont_'.$this->webfont_count.'" rel="stylesheet" type="text/css" href="'.$prefix.'://fonts.googleapis.com/css?subset=latin,cyrillic&family='.str_replace(' ','+',$rule_split[0]).'" />';

    Instead of ?subset=latin,cyrillic insert the subset(s) you need (eg latin and greek, etc.).

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘greek heading fonts wrongly fall back to standard web fonts…’ is closed to new replies.