setTailIndent problems

2010-01-11 Thread Fabry, Geza
Hi,

I try to set tailIndent for an NSMutableParagraphStyle attribute of an 
NSMutableAttributedString. The documentation says:
   If positive, this is the distance from the leading margin (for example, the 
left margin in left-to-right text). That is, it's the absolute line width. If 0 
or negative, it's the distance from the trailing margin-the value is added to 
the line width.
I found however that both positive and negative values are measured from the 
right margin, positive values make the text narrower, negative values make it 
wider. (The same seems to be true for kCTParagraphStyleSpecifierTailIndent in 
CoreText).
Is it a bug in the documentation, in functionality or in my code?
Thanks,
Geza
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


soft line breaks in NSLayoutManager

2009-04-28 Thread Fabry, Geza
Hi,
I have a formatted text in an NSTextStorage which I would like to draw.
I also have an array of character locations where to break the text into
lines. Is there a way to add soft line breaks to the layout without
modifying the unicode string (inserting line break characters)? In the
ATSU-world I used ATSUSetSoftLineBreak, but it is not supported in
64-bit.
Thanks for any help
Geza
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to draw text with expanded inter-character spacing

2009-03-23 Thread Fabry, Geza
I would like to draw some text into my custom view wider than usual but
not by stretching the glyphs using a transformation but by increasing
the spacing between the glyphs (like in Font  Character Spacing 
Spacing  Expanded/Condensed in MS Word). Is there an attribute for an
NSAttributedString like kATSUAfterWithStreamShiftTag was in ATSUI or any
other way to do that?
Thanks,
Geza
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com