Karl von Moor
Karl von Moor

Reputation: 8614

Get outline for NSGlyph

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

Answers (1)

Yuji
Yuji

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

Related Questions