Hi there!
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?
Hi there!
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?
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.