Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13952

    Can you take a look: http://webart21.ru/

    As you can see the first two words “Добро пожаловать” written in Russian, do not displayed with Lobster font, I’ve chosen from theme options panel. What strings of code I should add (and where) to add Cyrillic subset to google fonts. Also it will be very kind of you to advise me how can I add my own google (or may be fontface) fonts. Because only two fonts already integrated into the theme have native support of Cyrillic glyphs (but even they do not displayed correctly – font substitution occurs)

    #81399

    1) Here’s a list of all fonts which offer a cyrillic subset: http://www.google.com/webfonts?subset=cyrillic

    2) In choicesincludesadminregister-admin-options.php search for following code line:

    "subtype" => array(	'no custom font'=>'',

    and add your custom font to the list below.

    #81400

    Hi Dude, thank you for your fast response.

    I already know what google fonts support cyrillic subset. Can you give an example how I can do it with one of this fonts:

    Something like this:

    “subtype” => array( ‘no custom font’=>”,

    <link href=’http://fonts.googleapis.com/css?family=PT+Sans+Caption&subset=latin,cyrillic’ rel=’stylesheet’ type=’text/css’>

    Or another way? Excuse me I’m not a coder

    #81401

    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]).'" />';

    #81402

    I’ve also tried with this hack to add a google font in russian to my flashlight theme and it’s not working :(

    #81403

    Hi!

    See: http://www.kriesi.at/support/topic/cufon

    Best regards,

    Peter

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

The topic ‘Google cyrillic fonts are not displayed correctly.’ is closed to new replies.