NSLayoutManager / Justification incorrect when using drawGlyphsForGlyphRange

2011-07-19 Thread vade
I am drawing an NSAttributedString into a bitmap image and uploading to OpenGL as a texture. The strings origin is animated to mimic a scroll view, so speed is of the essence. Considering my need for animation I have migrated to NSLayoutManager / NSTextContainer and NSTextStorage, as opposed

NSLayoutManager / Justification incorrect when using drawGlyphsForGlyphRange

2011-07-19 Thread vade
I am drawing an NSAttributedString into a bitmap image and uploading to OpenGL as a texture. The strings origin is animated to mimic a scroll view, so speed is of the essence. Considering my need for animation I have migrated to NSLayoutManager / NSTextContainer and NSTextStorage, as opposed