gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnustep-cvs] r30188 - in /libs/back/trunk: ChangeLog Source/winlib/


From: Fred Kiefer
Subject: Re: [Gnustep-cvs] r30188 - in /libs/back/trunk: ChangeLog Source/winlib/WIN32FontInfo.m
Date: Thu, 22 Apr 2010 08:46:19 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.9) Gecko/20100317 SUSE/3.0.4-1.1.1 Thunderbird/3.0.4

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 ANTIALIASED_QUALITY.
Hopefully most people wont even know about this variable so they get the
standard behaviour all the time.

Fred

Am 21.04.2010 20:58, schrieb Eric Wasylishen:
> 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;
>     }
> 
> Settting GSFontAntiAlias to NO forces non-antialiased fonts.
> Otherwise, the windows system setting is used.
> 
> On Mon, Apr 19, 2010 at 3:38 AM, Fred Kiefer <address@hidden> wrote:
> 
>> 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
>>>     libs/back/trunk/Source/winlib/WIN32FontInfo.m
>>
>> In back we have the user default GSFontAntiAlias defined that could be
>> used to decide whether AA fonts or normal ones should be used.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]