S
S
super-guest2014-10-19 22:12:01
Opera
super-guest, 2014-10-19 22:12:01

How to deal with Opera glitch in Open Sans?

If you set font-weight: bold; and Open Sans to Russian text (i.e. Cyrillic), then Opera will have squares instead of Russian letters. How can this be dealt with?
(use a different font or not bold - extreme measures)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
super-guest, 2014-10-20
@super-guest

Almost figured it out, but still need help. The problem was that the Cyrillic subset was not connected. Here is what I found in /wp-includes/script-loader.php:

/* translators: To add an additional Open Sans character subset specific to your language,
             * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
             */
            $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)' );

            if ( 'cyrillic' == $subset ) {
                    $subsets .= ',cyrillic,cyrillic-ext';
            } elseif ( 'greek' == $subset ) {
                    $subsets .= ',greek,greek-ext';
            } elseif ( 'vietnamese' == $subset ) {
                    $subsets .= ',vietnamese';
            }

            // Hotlink Open Sans, for now
            $open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
    }

If you change no-subset to cyrillic in the code, then everything is ok. But I don’t want to change the code so that it doesn’t crash when updating WP. In translation, too, since again it will crash when updating WP.
How to make "human"?

A
Alex Shalin, 2014-10-20
@restalpo

Maybe Opera can't just emulate Cyrillic boldface. Bold will require a separate Open Sans Bold headset,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question