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

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


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

On Nov 18, 2008, at 1:00 pm, 11(November)/18/08, Douglas Davidson wrote:
On Nov 17, 2008, at 3:50 PM, Rua Haszard Morris wrote:
I have found that NSSuperscriptAttributeName, NSUnderlineStyleAttributeName, and NSObliquenessAttributeName (those are the attributes that I have tested) render differently when Cocoa Text is used to draw the string. The attributes appear to be intrepreted inverted, in that 1 for superscript produces subscript, positive obliqueness is a leftward tilt, etc. In normal controls the attributes render as expected.
Make sure that you are drawing in a flipped context.
I was ensuring that I am _not_ drawing in a flipped context... (!) now, as you suggest I tried flipping the custom view (override isFlipped) that the attributed string is drawn in, and note that it works correctly!

So an improved workaround is to tweak the positioning logic (to account for the flipped context) instead of tweaking (hacking) the actual attributes.

I'm still not clear on why this should be the case. Thanks for the vastly better workaround though..

thanks
Rua HM.

_______________________________________________

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: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
      • From: Douglas Davidson <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>)

  • Prev by Date: Re: How to get notification of rerun application
  • Next by Date: Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Previous by thread: Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Next by thread: Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)
  • Index(es):
    • Date
    • Thread