Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
- Subject: Re: [NSBezierPath appendBezierPathWithGlyph:inFont:] and current graphics port
- From: Brock Brandenberg <email@hidden>
- Date: Fri, 02 May 2003 12:02:45 -0500
>
But then, how come appending any other path beside a glyph works?! What is the
>
reasoning behind that?
>
>
Plus, as I have posted earlier today, append...WithGlyphs:count:inFont: works
>
without locking focus, but then flips the path? (At least for me) If this is
>
really a feature, they REALLY should document that!
I would assume that this feature/bug has something to do with the
not-so-uniform merging of the text coordinate world where the y-axis is down
and the default Postscript/PDF coordinate world where the y-axis is up. This
could explain your flipped glyph :| Maybe needing a current ctm has less to
do with getting the geometry into the y-up orientation, and more to do with
extracting the geometry from text/glyphs in the y-down orientation? It's a
bastard world anyway since font glyphs are created with y-up coordinates,
the Cocoa text views use y-down and the NSViews use y-up. What a pain.
Either way, it's undocumented :)
Brock
----- industrial design @ www.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.