[PATCH] gdi32: Antialias fake bold or italic fonts regardless of GASP table.

Ken Thomases ken at codeweavers.com
Tue Sep 29 04:40:05 CDT 2015


On Sep 29, 2015, at 4:21 AM, Nikolay Sivov <bunglehead at gmail.com> wrote:

> I think in some cases it makes sense to disable emboldening entirely, because as you said rendered images are ruined, but not only by moving outline points around. Some fonts, I think it applies to CJK fonts more than others, have prerendered embedded bitmaps to improve legibility in small sizes, but when we fake bold or oblique styles we disable bitmaps explicitly, and this goes against the idea font designer had in mind. Enabling AA could probably help, but not necessary as well as using bitmaps. Of course this has to be tested on windows using fonts that provide bitmaps, to see if they respond to bold simulation at all at sizes that are supposed to use bitmaps.

Well, in general, I think Windows simulates bold using an entirely different technique.  I haven't tested in any thorough fashion, but I did look briefly at one point.  It looks like Windows just draws the glyph twice with the second time being shifted right by one pixel.

>> There is a new registry setting to disable this and revert to the previous
>> behavior:
>> 
>> [HKEY_CURRENT_USER\Software\Wine\Fonts]
>> "AntialiasFakeBoldOrItalic"="n"
> 
> What's a problem of ignoring GASP and following global AA settings in such cases? I mean are you aware of any problems that could potentially need such switch?

No specific problems other than people are picky about their fonts.  It's conceivable that some people would prefer the old way to the new.  In the CodeWeavers bug tracker where I first proposed this patch (bug 12270, if you care), I got pushback about the lack of a registry setting to turn this off.  So, I added a registry setting.

-Ken




More information about the wine-devel mailing list