• 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
conflict between Core Graphics and NSView graphics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

conflict between Core Graphics and NSView graphics


  • Subject: conflict between Core Graphics and NSView graphics
  • From: Bill Appleton <email@hidden>
  • Date: Mon, 26 Apr 2010 12:24:29 -0700

hi all

i converted a bunch of quickdraw code to core graphics successfully -- it
worked

now i am converting a bunch of carbon UI code to cocoa

but when I draw text, my fonts are wrong and my  font sizes are much too big

i am getting the CGContextRef from the NSWindow in the drawRect handler, and
then setting the CG font and size, etc. like before

but it is as if I need to also set the NSFont or something like that

other graphics (lines, bitmaps, etc.) are drawing correctly

can someone shed some light on this and/or point me to some documentation?


thanks,

bill appleton
_______________________________________________

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: conflict between Core Graphics and NSView graphics
      • From: Mike Abdullah <email@hidden>
    • Re: conflict between Core Graphics and NSView graphics
      • From: Aki Inoue <email@hidden>
    • Re: conflict between Core Graphics and NSView graphics
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Capturing frames in 64-bits arch
  • Next by Date: Re: conflict between Core Graphics and NSView graphics
  • Previous by thread: Re: Capturing frames in 64-bits arch
  • Next by thread: Re: conflict between Core Graphics and NSView graphics
  • Index(es):
    • Date
    • Thread