Re: Drawing FULL NSAttributedString

2011-05-03 Thread Rimas M.
Hello Aki, Thank you for reply. Looks like I will need to learn lots of new things, because fonts metrics are unknown world for me. I have played a bit with "rect of glyph" from NSFont and NSLayoutManager. Some useful information can be found. But lots of unclear things are mostly with baselines

Re: Drawing FULL NSAttributedString

2011-04-27 Thread Aki Inoue
Rimas, Typically the text layout system including the Cocoa Text System works in the typographic metrics that's based on the information embedded in the font. So, most layout information returned by NSLayoutManager is in the typographic metrics if not documented otherwise. The information you

Drawing FULL NSAttributedString

2011-04-27 Thread Rimas M.
Hi folks, Last few days I am trying to solve very strange puzzle - how to draw FULL attributed string. Short story: I have a NSTextStorage object, which holds my formatted string information. I am editing it via NSTextView (NSLayoutManager + NSTextContainer + my NSTextStorage) mechanism. That wo