Re: String -> Bezier
Re: String -> Bezier
- Subject: Re: String -> Bezier
- From: glenn andreas <email@hidden>
- Date: Thu, 16 Dec 2004 15:01:06 -0600
On Dec 16, 2004, at 2:54 PM, Lorenzo wrote:
Hi,
straight question: how can I tranform a NSAttributedString in a Bezier
path?
Best Regards
Build an NSLayoutManager that uses that attributed string, and use that
to convert to a series of glyphs. Iterate through the glyphs, find the
font for each, and ask that font for the outline. Append that outline
to the bezier path (or, for multiple glyphs from the same font, use
appendBezierPathWithGlyphs:inFont:), and advance based on an
NSTypesetter.
Lots of little details to get just right for what seems at first glance
to be a simple task...
Glenn Andreas email@hidden
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden