• 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: Setting the origin of a GC and Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the origin of a GC and Text


  • Subject: Re: Setting the origin of a GC and Text
  • From: Jim Crafton <email@hidden>
  • Date: Mon, 7 Jul 2003 00:10:48 -0400

Maybe I am *perhaps* making this more difficult than it needs to be.
All I really want is this:
given a rectangle, some text, and a mask of options (stuff like whether to wrap the text to the rect, whether the text should be centered vertically, centered horizontally, etc) I want to draw the text starting at the rect's top,left corner using the current font, color, etc.
Perhaps there is a simpler API that will do this than fighting with all the NSLayoutManager et al.?

Thanks

Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Setting the origin of a GC and Text (From: Jim Crafton <email@hidden>)

  • Prev by Date: Setting the origin of a GC and Text
  • Next by Date: Interapp
  • Previous by thread: Setting the origin of a GC and Text
  • Next by thread: Re: Setting the origin of a GC and Text
  • Index(es):
    • Date
    • Thread