• 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: CGContextShowTextAtPoint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGContextShowTextAtPoint


  • Subject: Re: CGContextShowTextAtPoint
  • From: "Raglan T. Tiger" <email@hidden>
  • Date: Wed, 14 Oct 2015 12:41:14 -0600


> On Oct 14, 2015, at 10:02 AM, Jens Alfke <email@hidden> wrote:
>
> The view is probably using flipped coordinates. Look up flipped coordinates in the Cocoa view documentation to understand what they are and how to work around the problem.
>
> As for the size, have you set the size of the NSFont in ‘sysFont’?
>

I am using -graphicsContextWithBitmapImageRep and then adding text annotations.  The reason for using CGContextShowTextAtPoint in the first place was to solve this problem when drawing NSStrings.

I guess the real question is "How to you draw NSStrings as flipped == YES when the current NSGraphicsContext is graphicsContextWithBitmapImageRep which is flipped = NO.


-rags
_______________________________________________

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: CGContextShowTextAtPoint
      • From: Conrad Shultz <email@hidden>
References: 
 >CGContextShowTextAtPoint (From: "Raglan T. Tiger" <email@hidden>)
 >Re: CGContextShowTextAtPoint (From: Graham Cox <email@hidden>)
 >Re: CGContextShowTextAtPoint (From: "Raglan T. Tiger" <email@hidden>)
 >Re: CGContextShowTextAtPoint (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: More Xcode 7 inconsistency?
  • Next by Date: Re: CGContextShowTextAtPoint
  • Previous by thread: Re: CGContextShowTextAtPoint
  • Next by thread: Re: CGContextShowTextAtPoint
  • Index(es):
    • Date
    • Thread