• 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: Thu, 20 Nov 2008 08:13:18 +1300

Even better... thanks for the tip. A much simpler approach...

On Nov 19, 2008, at 12:53 pm, 11(November)/19/08, Douglas Davidson wrote:


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

What are the different options for flipping the coordinates of the destination view? I've tried doing it by scaling and translating the CGContext, but this results in problems with underlining or the character orientation (depending on whether i flip the view back before or after drawing the text).

At the moment the only method which results in correct text is to have a custom view and override isFlipped - is this the only recommended method?

I ask because I have to use these strings within custom views (which may for example have rotated contexts), as well as in standard controls, and simpler custom views purely for drawing these attributed strings. If the only method to have the attributes (particularly underline) interpreted correctly is to perform the drawing in a isFlipped NSView subclass, then I need to rejig things so the complex custom views embed an NSView rather than draw the attributed string manually.

The other alternative would be to use the NSStringDrawing APIs instead of using NSLayoutManager directly.


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


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>)
 >Re: 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: 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: Simple single file renaming application ...
  • Next by Date: Re: Input Managers perspective
  • 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