The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Opera and anti-aliased Unicode fonts on Google search-box

Forums » Opera for Windows/Mac/Linux » Opera for Windows

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

1. December 2011, 22:19:27

daisensou

Posts: 37

Opera and anti-aliased Unicode fonts on Google search-box

Is anyone experiencing some erratic behavior when highlighting Unicode text (in this case, Japanese kanji, hiragana and katakana), after typing or pasting some text?

It seems pretty arbitrary, sometimes only a single word or kana\syllable (sometimes nothing) will be anti-aliased.

See this for a better idea: http://i.imgur.com/9Fwy4.png

- Top box is from Firefox (same for typed\pasted or highlighted)
- Bottom box is Opera after typing or pasting the text.
- Middle box is with Opera highlight\select overlayed

Search term (random text): "行きつけのカフェー" or "行きつけの カフェー"

*I'm running Opera 11.52\Win7 64

2. December 2011, 11:45:00

daisensou

Posts: 37

Even a clean install (blank profile and no custom application settings) shows this behavior. Rolled back to 11.11 (only other version I had here at hand) and it is normal.

I used the term "anti-aliasing", but it's not limited to that, since disabling ClearType makes no difference as the unicode font seems to change from MS Gothic to some other bold font.

This blog seems to describe a similar situation, but in his case, it seems to affect only plain latin characters http://shallowsky.com/blog/2011/Aug/16/, also the fix does not work in Opera (tried to apply it through Dragonfly, the font changes its size, but the select\highlight problem persists).

Disabling javascript makes the problem go away, but that cripples other features. Talk about a rock and a hard place...

2. December 2011, 13:44:00

daisensou

Posts: 37

Why is this thing only happening on Opera? And only on the Web search, as Image\Video\Shopping\etc are normal.

Anyway, had to add this as a userjs file to force MS Gothic to be used at all times, meaning latin characters will take the hit (like the kana and kanji, it'll not receive anti-aliasing) but it's better than nothing:

// ==UserScript==
// @name           Google Opera SHLFix
// @namespace      Google Opera SHLFix
// @include        *google.*/*
// @include        *.google.*/*
// ==/UserScript==

var shlfix = document.createElement('style');
shlfix.type = 'text/css';
shlfix.innerHTML = '	\.gsfi, .lst {font-family:"MS Gothic";}\	';
document.getElementsByTagName('head')[0].appendChild(shlfix);


http://i.imgur.com/t3vTG.png

Forums » Opera for Windows/Mac/Linux » Opera for Windows