Re: Underlining text

2011-08-12 Thread Jens Alfke
On Aug 12, 2011, at 4:56 AM, patrick machielse wrote: > - The underline seems to stop 1 or 2 pixels short of the end of the > underlined text. The underline is most likely being drawn to the end of the last character’s advance, which isn’t necessarily the same as the optical right margin of th

Underlining text

2011-08-12 Thread patrick machielse
I'm underlining some text using NSMutableString's NSUnderlineStyleAttributeName attribute (on 10.7). However, the results aren't quite right. There seem to be 2 separate issues: - The underline seems to stop 1 or 2 pixels short of the end of the underlined text. - If the text has a NSShadowAttr

Re: Underlining text in Interface Builder

2008-11-05 Thread Adil Saleem
xists (at least on my end). The underline option in the Font window does work. My apologies for the creating the confusion. Adil --- On Wed, 11/5/08, James Walker <[EMAIL PROTECTED]> wrote: > From: James Walker <[EMAIL PROTECTED]> > Subject: Re: Underlining text in Interface

Re: Underlining text in Interface Builder

2008-11-05 Thread James Walker
(Resend; I posted this yesterday but it hasn't shown up or bounced) Adil Saleem wrote: I am trying to underline a static text in Interface Builder (through fonts window), but it does not underline the text. I don't understand why. Any ideas ? Try this: 1. In the inspector, check "Rich Text

Re: Underlining text in Interface Builder

2008-11-05 Thread Graham Cox
On 6 Nov 2008, at 12:58 am, Adil Saleem wrote: I don't get it. If a user can not underline the text directly from interface builder, then why is the option given in the font window Because the Font Window is used all over the place, not just in IB. But yes, the Font Window is actually a li

Re: Underlining text in Interface Builder

2008-11-05 Thread Adil Saleem
I don't get it. If a user can not underline the text directly from interface builder, then why is the option given in the font window ?   Adil   --- On Tue, 11/4/08, Jonathan Hess <[EMAIL PROTECTED]> wrote: From: Jonathan Hess <[EMAIL PROTECTED]> Subject: Re: Underlining

Re: Underlining text in Interface Builder

2008-11-04 Thread Joey Hagedorn
Hello, If you are unable to format text as you intend, please do file a bug at http://bugreporter.apple.com with precisely what you're trying to do, how you expect it to behave, and how it currently behaves. Thanks, -Joey On Nov 4, 2008, at 12:37 AM, Adil Saleem wrote: Hi, I am trying to

Re: Underlining text in Interface Builder

2008-11-04 Thread Jonathan Hess
Hey Adil - A text label in Interface Builder is an NSTextField, which has an NSTextFieldCell. NSTextFieldCell has three related properties, stringValue, font, and attributedStringValue. When the cell has just a stringValue, and a font, it combines the two during drawing to draw the string

Underlining text in Interface Builder

2008-11-04 Thread Adil Saleem
Hi, I am trying to underline a static text in Interface Builder (through fonts window), but it does not underline the text. I don't understand why. Any ideas ? Thanx ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a