• 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: Possible to draw an NSMutableAttributedString into a CGContextRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to draw an NSMutableAttributedString into a CGContextRef?


  • Subject: Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 13 Apr 2007 12:28:20 -0600
  • Thread-topic: Possible to draw an NSMutableAttributedString into a CGContextRef?

> You could create an NSGraphicsContext with
> +graphicsContextWithGraphicsPort and then render the string into it.

You might also have to flip it, translate it, rotate it to get it oriented
and drawn properly into the context (use NSAffineTransform). My most recent
experience was with a context for printing, in landscape, and I got a pretty
serious headache trying to make the text come out with the letters right
side up & not mirrored, and drawn left to right & top to bottom, all at the
same time. But it does work.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Possible to draw an NSMutableAttributedString into a CGContextRef?
      • From: Ken Tozier <email@hidden>
References: 
 >Re: Possible to draw an NSMutableAttributedString into a CGContextRef? (From: "Albert Andersen" <email@hidden>)

  • Prev by Date: Re: ScriptEditor thinks my command is a variable
  • Next by Date: Re: Sorting Array Alphabetically
  • Previous by thread: Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
  • Next by thread: Re: Possible to draw an NSMutableAttributedString into a CGContextRef?
  • Index(es):
    • Date
    • Thread