Reputation: 8614
With Core Text it was possible to get the outline of a CGGlyph by CTFontCreatePathForGlyph(...)
. Now I'd like to port from Core Text to Cocoa's font engine, so the question is:
Is there a way to get the outline for a NSGlyph?
Upvotes: 4
Views: 573
Reputation: 34195
Yes, you can use NSBezierPath
's -appendBezierPathWithGlyph:inFont:
.
I'd like to add that you can use CoreText with Cocoa, too. So in that sense you don't have to port at all.
Upvotes: 1