• 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
iOS 6 changes in CATextLayer text drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS 6 changes in CATextLayer text drawing


  • Subject: iOS 6 changes in CATextLayer text drawing
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 11 Oct 2012 08:57:00 -0700

(1) CATextLayer in iOS 6 requires an opaque background in order to antialias text. CATextLayer in iOS 5 did not have this limitation; it could antialias its text perfectly well even if its background was transparent. Why the change? I'm guessing that it's an efficiency boost.

(2) CATextLayer in iOS 6 is drawing the text to a different baseline (lower). To put it another way, there is now more space between the top of the text and the top of the layer. This means that I must make my CATextLayers taller in order to encompass the whole text height. Why the change? I'm guess that it has to do with changes in the overall text drawing system needed to accommodate styled text throughout.

Thx - m.

--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com


_______________________________________________

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

  • Prev by Date: copy in WebView
  • Next by Date: Re: copy in WebView
  • Previous by thread: Re: copy in WebView
  • Next by thread: Re: iOS 6 changes in CATextLayer text drawing
  • Index(es):
    • Date
    • Thread