[NSBezierPath appendBezierPathWithGlyph:inFont:] problem
[NSBezierPath appendBezierPathWithGlyph:inFont:] problem
- Subject: [NSBezierPath appendBezierPathWithGlyph:inFont:] problem
- From: Brock Brandenberg <email@hidden>
- Date: Wed, 24 Apr 2002 14:29:26 -0500
Hi.
I'm having a problem using appendBezierPathWithGlyph:inFont:, and I
believe it's because it is used outside of a graphics context. The
method behaves properly when called from inside of a drawRect: method
where the focus is locked, but it fails quietly when used outside of a
drawRect: method. I'm sure the parameters to the function are correct
and I am correctly doing a moveToPoint: before the
appendBezierPathWithGlyph:inFont: in order to start the path. But, I
believe appendBezierPathWithGlyph:inFont: is failing because it is
looking for some graphics context information with which to convert the
type into outlines.
Does anyone have any experience with this? Is there a proper way to set
up a graphics context that is not tied to a window? The docs are pretty
thin on graphics contexts so I'm struggling. I need to gather a
polygonal representation for a font before a subclass of NSView is
instantiated, so I need to do this outside of a drawRect: method.
FYI, I'm creating a path, adding a glyph to it, flattening it into a new
path, then iterating thru the elements to gather the points and pass
them to another polygon library.
Thanks,
Brock Brandenberg
----- industrial design @ bergdesign.com ------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.