Re: Change font smoothing style programatically?
Re: Change font smoothing style programatically?
- Subject: Re: Change font smoothing style programatically?
- From: Alex Eddy <email@hidden>
- Date: Fri, 9 Jul 2004 14:26:10 -0700
On Jul 9, 2004, at 6:10 AM, Audun Wilhelmsen wrote:
>
I'm trying to change the smoothing style in my application. All other
>
styles than "Standard" (Best for CRT) looks awful in certain places,
>
such as when used on a semi-transparent floater window, or for some
>
fonts in menu bar items. I've noticed that both the Date & Time menu
>
and the Command-Tab floater uses the "Standard" smoothing style,
>
overriding the users preferences, so it is apparently possible to
>
change it programatically. If so, it seems to be undocumented, and
>
fairly unknown. Anyone know how?
Here's how to turn off subpixel RGB antialiasing and get regular grey
antialiasing:
CGContextRef context = [[NSGraphicsContext currentContext]
graphicsPort];
CGContextSetShouldSmoothFonts(context, NO); // disable LCD subpixel
smoothing
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.