• 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: NSString to *NSGlyph (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString to *NSGlyph (solved)


  • Subject: Re: NSString to *NSGlyph (solved)
  • From: Simon Stapleton <email@hidden>
  • Date: Mon, 08 Oct 2001 19:56:38 +0100 (BST)

> From: Douglas Davidson <email@hidden>
>
> On Monday, October 8, 2001, at 05:20 AM, Simon Stapleton
wrote:
>
> > I need to lay some text out along an arbitrary path. This could
> > be a curve. Now, I can work out how to lay out a glyph, and all
> > that good
> > stuff, but I can't for the life of me work out how to go from an
> > NSString to an array of NSGlyphs.
>
> This is one of the jobs of NSLayoutManager--you can expect to
> become quite familiar with this handy class if you do
> sophisticated work with the Cocoa text system, since the layout
> manager is the central controlling object for text display.

Douglas, and all the others who replied to me. Thanks very
much. Exactly what I was looking for. Fantastic. I'd looked at
NSLayoutmanager, but hadn't clicked that was what I was
looking for. Now I have a FM to R (and example code, to boot), I
can do this thing. Yay. Not too difficult, either[1]. I like a cocoa.

Simon

[1] I should have guessed it was this simple. Not found a hard
problem to solve in Cocoa yet.

--
PGP Key ID : 0x50D0698D
--
If the answer isn't obvious, the question is a distraction. Go find
an easier question.


  • Prev by Date: Re: Cocoa newbie frustration
  • Next by Date: Joy?
  • Previous by thread: Re: Persistance
  • Next by thread: Joy?
  • Index(es):
    • Date
    • Thread