• 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: Cocoa text via Quartz CGLayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa text via Quartz CGLayer


  • Subject: Re: Cocoa text via Quartz CGLayer
  • From: Sander Stoks <email@hidden>
  • Date: Sat, 6 Feb 2010 21:55:59 +0100

Hi Aki,

Thanks!  That was indeed the problem.  I checked whether my whole CGLayer detour was still needed after disabling screen fonts (the reason was that rotated text looked bad) but I see that's still the case even with screen fonts disabled.

Thanks again,
Sander

On Feb 6, 2010, at 7:54 PM, Aki Inoue wrote:

> It's the screen font setting that's causing the shift between the two.
>
> When you use the screen font, CoreGraphics tries to position the glyph origin at the pixel boundary as much as possible.
>
> In this case, because of the way two rendering types differ how interpret the pixel boundary, the shift could occur.
>
> The best solution is to disable the screen font via [layoutManager setUsesScreenFonts:NO] to both cases.
>
> Aki

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Cocoa text via Quartz CGLayer (From: Sander Stoks <email@hidden>)
 >Re: Cocoa text via Quartz CGLayer (From: David Duncan <email@hidden>)
 >Re: Cocoa text via Quartz CGLayer (From: Sander Stoks <email@hidden>)
 >Re: Cocoa text via Quartz CGLayer (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: NSScrollView & its width
  • Next by Date: Re: Mixing TableView Bindings
  • Previous by thread: Re: Cocoa text via Quartz CGLayer
  • Next by thread: Re: Debugging (apparently) random retain loop bug (NSArrayController)
  • Index(es):
    • Date
    • Thread