Am 19.04.2010 03:23, schrieb Eric Wasylishen:
> Author: ericwa
> Date: Mon Apr 19 03:23:30 2010
> New Revision: 30188
>
> URL: http://svn.gna.org/viewcvs/gnustep?rev=30188&view=rev
> Log:
> winlib/WIN32FontInfo.m: Use DEFAULT_QUALITY for fonts
>
> Modified:
> libs/back/trunk/ChangeLog
> l
How does this look:
defs = [NSUserDefaults standardUserDefaults];
if ([defs objectForKey: @"GSFontAntiAlias"] != nil
&& [defs boolForKey: @"GSFontAntiAlias"] == NO)
{
logfont.lfQuality = NONANTIALIASED_QUALITY;
}
else
{
logfont.lfQuality = DEFAULT_QUALITY;
}
The code looks OK to me. But is the result what you want to achieve?
I could see us using three cases here. The variable GSFontAntiAlias not
being set means use the standard behaviour, that is DEFAULT_QUALITY. If
it is set to NO, we use NONANTIALIASED_QUALITY and if it is set to YES
we use ANTIALIA