Re: True Type Fonts
Re: True Type Fonts
- Subject: Re: True Type Fonts
- From: Jens Alfke <email@hidden>
- Date: Sat, 09 Aug 2014 16:14:16 -0700
> On Aug 9, 2014, at 2:55 PM, Raglan T. Tiger <email@hidden> wrote:
>
> I would like to get bezier outlines of true type fonts …
Specifically only TrueType fonts? What about OpenType or PostScript fonts?
I think your best bet is NSBezierPath, which has methods
- (void)appendBezierPathWithGlyph:(NSGlyph)glyph inFont:(NSFont *)font;
- (void)appendBezierPathWithGlyphs:(NSGlyph *)glyphs count:(NSInteger)count
inFont:(NSFont *)font;
Just be aware of the licensing restrictions of the fonts. Obviously you have the right to render text with any font legally installed on your computer, but things get iffier when you start manipulating the glyph outlines directly. At some point it becomes creating a "derivative work", which most licenses don't allow. (Nor can you take those outlines to another computer and use them there, unless that font is also licensed for that computer.)
(Sorry to sound pedantic, but I used to work in typography, and I've found that a lot of people don't understand that fonts are creative works that people make their livelihood on, just like images or music.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden