Re: Vectorising text
Re: Vectorising text
- Subject: Re: Vectorising text
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 22 Oct 2001 11:07:13 -0700
On Monday, October 22, 2001, at 10:15 AM, Ken Tabb wrote:
Hi,
is it possible in Cocoa (/ Quartz) to vectorise text, so that if text is
typed in, you can end up with a set of NSBezierPaths?
Yes. See -appendBezierPathWithGlyph:inFont: and related methods.
I'm deliberating
over the design of a freeware vector drawing app which allows (for
instance) gradients on text, text on a path etc. and, although it would
make later changing the font of some text a pain, it seems the logical
way to do this in Cocoa is to make everything an NSBezierPath. Or maybe
I'm missing something obvious here and you can already do this sort of
thing while keeping the object as editable text?
Well, trick (as always) is ensuring that the fonts used in the document
exist on the machine that's running the app.
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.