Re: NSBezierPath append CGGlyph
Re: NSBezierPath append CGGlyph
- Subject: Re: NSBezierPath append CGGlyph
- From: Douglas Davidson <email@hidden>
- Date: Tue, 4 Sep 2007 09:32:52 -0700
On Sep 1, 2007, at 11:37 AM, Keith Duncan wrote:
I appreciate this, it was simply a stab in the dark since I
remember reading somewhere (in Apple docs) that they are
interchangeable. It should infact read that the value is
interchangeable NOT the type.
For valid glyphs in the font, NSGlyph and CGGlyph do use the same
numerical values. NSGlyph also has some special defined values
(NSControlGlyph and NSNullGlyph) with particular meanings for the
Cocoa text system: NSControlGlyph is used in the glyph stream to
represent control characters and attachments that end up not being
represented by visible glyphs, and NSNullGlyph is used as padding in
the glyph stream in cases where that is useful and desirable to keep
the numerical indexes for glyphs and characters in line. These
values are not likely to be understood in the same way outside of the
Cocoa text system, so they should not be carried over to CGGlyphs.
Douglas Davidson
_______________________________________________
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