OK. I've got an app I'm working on with an NSMatrix (with the default inverted coordinate system). For some drawing in the cells in the matrix, I'm usng an NSBezierPath and I want to (at some point) use the method appendBezierPathWithGlyph:inFont:
The problem is that due to a change in the appkit as of 10.3, in 10.2, the glyph gets drawn right-side up, but in 10.3 and higher it is upside-down. I can fix it for 10.3 but then it breaks for 10.2
Does anyone have an idea how to fix this?
According to Apple's developer site, the change in the 10.3 app kit is described as follows:
Also, -appendBezierPathWithGlyphs:count:inFont: no longer modifies the current graphics context (it doesn't call -[NSFont set]). This means it is the caller's responsibility to use fonts with matrix to flip when the target view is flipped
I was hoping that there'd be something simple I could do that would make it work in both (ex. it says that in 10.3, it doesn't call -[NSFont set], so I was thinking maybe if I called that, it would fix itself, but no luck.) I know I could do OS checking, but I'd rather not, and I'm not sure exactly what the code looks like. I was trying to figure out the method [NSFont fontWithName: matrix:], but I haven't had a lot of luck with finding what the different parts of the font matrix do, so I don't know what to do to the matrix to flip my font back...