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: Marco Binder <email@hidden>
- Date: Fri, 2 May 2003 14:44:40 +0200
Even stranger...
As I said, appendBezierPathWithGlyphs:glyphs* count:number inFont:font
works. However, it only gave me correct results when called the first
time (during instance initialization). If I updated the instance and
called this very same method again, the resulting path appeared
flipped! Upside-down! VERY strange.
I now resorted to your workaround, locking focus on an image, which
also works in this weird case. These methods really seem to be messed
up in some way.
Marco
Am Freitag, 02.05.03 um 12:14 Uhr schrieb Marco Binder:
It is nowhere documented that -[NSBezierPath
appendBezierPathWithGlyph:inFont:] does actually append no path to
the receiver if the current NSGraphicsContext has no graphics port.
Is it really the case?
The only workaround I found so far is to lock the focus on a static
NSImage (not quite efficient, I guess).
Any better idea? Any explanation? Thanks!
I m sorry, my initial reply was worded badly.
I m stuck at the same point at the moment. I could not even get any
path to be appended if I locked focus on an image (newly allocated
though, not static) for testing.
I meant: i could not get a path with a glyph appended to my receiver,
even if I locked focus on an image beforehand.
However, I think this is a bug rather than a "feature".
The fact the appendBezierPathWithGlyph:glyph inFont:font doesnt work I
consider a bug.
I found that using appenBezierPathWithGlyphs:glyph* count:number
inFont:anyFont work. If you just need one glyph, simle pass &myGlyph
and count=1. Works for me!
Again: I found that using appendBezierPathWithGlyphs:glyphs*
count:number inFont:font works. If you just need one glyph, simply
pass &myGlyph and count=1. Works for me!
MArco
--
|\ /| email@hidden http://www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
--
|\ /| email@hidden
http://www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
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.