• 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: Text is flipped vertically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text is flipped vertically


  • Subject: Re: Text is flipped vertically
  • From: Agha Khan <email@hidden>
  • Date: Fri, 24 Jul 2009 10:24:33 -0700

I was able to fix that problem by

CGContextTranslateCTM(context, 0.0, rect.size.height);
CGContextScaleCTM(context,1.0, -1.0);

It works fine now. Thank you for reply.

Best regards
Agha
On Jul 23, 2009, at 8:18 PM, Kyle Sluder wrote:

On Jul 23, 2009, at 6:03 PM, Agha Khan <email@hidden> wrote:

I was unable to find where I have flipped the CGContextRef and
for some strange reason my text is flipped vertically. Any idea how to reset CGContextRef?

Maybe it's a better idea to figure out where you're flipping the context.


How are you drawing the text? The text system is extremely sensitive about the flippedness of the views it draws into.

--Kyle Sluder

_______________________________________________

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: 
 >Text is flipped vertically (From: Agha Khan <email@hidden>)
 >Re: Text is flipped vertically (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Comparing NSImages
  • Next by Date: Re: Comparing NSImages
  • Previous by thread: Re: Text is flipped vertically
  • Next by thread: mouse entered/exited in nscollectionviewitem's view
  • Index(es):
    • Date
    • Thread