Sorry, that method should have looked like this:

[path appendBezierPathWithGlyph:'+' inFont:[NSFont userFontOfSize: 14.0]]



On 4 Oct, 2008, at 11:59, [EMAIL PROTECTED] wrote:

I can't figure out how NSGlyph works in methods like this:

[path appendBezierPathWithGlyph:'x' inFont:[NSFont userFontOfSize: 14.0]]

(Of course 'path' is an NSBezierPath.)

What I get on the screen is not an '+', but an upper-case "H" in some outline font. And when I put in explicit Unicodes, I don't get the expected symbol either.

NSGlyph is declared as an unsigned int. But how is it connected to displayed characters?

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to