• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change font smoothing style programatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: distributing dylibs
  • Next by Date: Re: NSImage and WebKit
  • Previous by thread: Change font smoothing style programatically?
  • Next by thread: DO and Bindings
  • Index(es):
    • Date
    • Thread