White on black antialiased text in menu bar looks awful

8 views
Skip to first unread message

Osmo Jaakkola

unread,
Dec 30, 2010, 4:02:44 AM12/30/10
to
I'm using Windows XP with font anti-aliasing (ClearType) enabled. When
trying out a skin with menu text brighter than its background I found the
text hard to read, with very uneven brightness. Apparently if menu text is
brighter than the background, Opera for some reason actually draws the
text in invert colors, then inverts the output back. This might be fine if
the inversion was done correctly (transform to linear color space,
calculate y = 1-x, transform back to sRGB), but it's done on the pixels'
values directly. E.g. Microsoft's GDI documentation clearly says
antialiased text shouldn't be inverted (XORed):
http://msdn.microsoft.com/en-us/library/dd183433(v=VS.85).aspx

Here's a magnified screenshot with corrected versions done in photoshop:
http://ihme.org/~orbik/random%20stuff/bad%20font%20rendering%20in%20opera.PNG

Reply all
Reply to author
Forward
0 new messages