• 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: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)


  • Subject: Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • From: Rua Haszard Morris <email@hidden>
  • Date: Wed, 19 Nov 2008 09:40:29 +1300

Thanks for the link, you are right, I had not seen that document!

On Nov 19, 2008, at 9:33 am, 11(November)/19/08, Douglas Davidson wrote:


On Nov 18, 2008, at 12:18 PM, Rua Haszard Morris wrote:

To follow up.. below I have pasted the code that draws the text (for my test app, as opposed to the more complex ways of reproducing the bug elsewhere in my code). (the full test app is attached to the radar bug)

I have been consulting the Text System Overview documentation, which I don't believe mentions this fact.
http://developer.apple.com/documentation/Cocoa/Conceptual/TextArchitecture/TextArchitecture.html


I can understand that drawing text top to bottom makes sense, but I am surprised that the coordinate system of the destination context has such far-reaching side effects.

You're looking at the Text Systems Overview, which is very general conceptual documentation, the sort you would consult to decide which class to use. What you want is the Text Layout Programming Guide for Cocoa, which gives more detailed direction as to how to use these classes. The first section, http://developer.apple.com/documentation/Cocoa/Conceptual/TextLayout/Concepts/LayoutManager.html under the heading "Glyph Drawing" says, "The text system expects view coordinates to be flipped, like those of NSTextView." If you are going to be drawing using the layout manager directly, this is a hard-and-fast rule.


Douglas Davidson


_______________________________________________

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


  • Follow-Ups:
    • Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
      • From: Rua Haszard Morris <email@hidden>
References: 
 >NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047) (From: Rua Haszard Morris <email@hidden>)
 >Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047) (From: Douglas Davidson <email@hidden>)
 >Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047) (From: Rua Haszard Morris <email@hidden>)
 >Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047) (From: Douglas Davidson <email@hidden>)
 >SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047) (From: Rua Haszard Morris <email@hidden>)
 >Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047) (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Next by Date: window flash
  • Previous by thread: Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Next by thread: Re: SOLVED Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Index(es):
    • Date
    • Thread