Re: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?
Re: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?
- Subject: Re: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?
- From: Alex Zavatone <email@hidden>
- Date: Wed, 17 Feb 2016 13:59:09 -0500
David, I put together some helper classes for building NSAttributed strings in specific formats on iOS.
One of the things it handles properly is superscripting. The options for superscripting are to scale the superscripted text and shift above the baseline based on a percentage of the original font's size or to move it a fixed amount.
If you or anyone else would like, I'd be happy to share.
Email me offline if you'd like me to send.
Cheers,
Alex Zavatone
On Feb 17, 2016, at 9:37 AM, David Hoerl wrote:
>
>>> Is there a mechanism to do this? Even a gray solid underline that visually aligns the items works too (background image?)
>>>
>>
>>
>> Serach the documentation for NSUnderlinePatternDot
>>
>> —Graham
>
> Thanks,
>
> What I had wanted was to place the underline style in the white space between two items that are tab separated.
>
> I did find this past weekend that simply applying the style to the tab character (the style you mention) resulted in the effect I was hoping for. In hindsight I guess it seems quite rational now.
>
> Note that patterns also require the specification of a line style (single, double, etc) - so you must or them together.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden