• 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: Newlines + quartz text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newlines + quartz text?


  • Subject: Re: Newlines + quartz text?
  • From: "John C. Randolph" <email@hidden>
  • Date: Sun, 5 Aug 2007 12:19:24 -0700


On Aug 4, 2007, at 9:10 PM, Marcel Weiher wrote:


On Aug 4, 2007, at 7:05 PM, Maryanna Rogers wrote:

I've tried all sorts of different encodings, ASCII, unicode, UTF8, and
none work Little rectangles are displayed where the breaks should be.

Quartz does not break lines. You need to either do that yourself or use an API that does layout, such as the Cocoa text system.

I would typically just use an NSCell to draw multi-line text. Is there some reason in particular for going for such a low-level API?


-jcr

_______________________________________________

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: 
 >Newlines + quartz text? (From: "Maryanna Rogers" <email@hidden>)
 >Re: Newlines + quartz text? (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Resolution independent cursors
  • Next by Date: Drag with NSTableview
  • Previous by thread: Re: Newlines + quartz text?
  • Next by thread: Re: Newlines + quartz text?
  • Index(es):
    • Date
    • Thread