Re: NSObliquenessAttributeName, labelFontOfSize, Italic

2009-03-25 Thread Andrew Farmer

On 24 Mar 09, at 05:20, Eric Gorr wrote:
Well, actually, considering that using NSObliquenessAttributeName  
caused the text to look blury, I switched to userFontOfSize which  
provides a font with a clean italic version.


If anyone has a better solution, I would be interested.

I filed bug report rdar://6715356 requesting that labelFontOfSize  
return a font with a clean italic and bold-italic variant and  
suggest others do the same if they want this as well.


To clarify a bit, the issue here is simply that the system font  
(Lucida Grande) doesn't have an italic variant, whereas the user font  
(Helvetica) does.

___

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


Re: NSObliquenessAttributeName, labelFontOfSize, Italic

2009-03-25 Thread Eric Gorr


On Mar 25, 2009, at 2:34 AM, Andrew Farmer wrote:


On 24 Mar 09, at 05:20, Eric Gorr wrote:
Well, actually, considering that using NSObliquenessAttributeName  
caused the text to look blury, I switched to userFontOfSize which  
provides a font with a clean italic version.


If anyone has a better solution, I would be interested.

I filed bug report rdar://6715356 requesting that labelFontOfSize  
return a font with a clean italic and bold-italic variant and  
suggest others do the same if they want this as well.


To clarify a bit, the issue here is simply that the system font  
(Lucida Grande) doesn't have an italic variant, whereas the user  
font (Helvetica) does.


Yes. Well, that labelFontOfSize does not return a font with an italic  
variant. I assume it is possible that systemFontOfSize may return a  
different font then labelFontOfSize in the future.


I wanted to draw a label in italic and, while I could get close by  
using NSObliquenessAttributeName, NSObliquenessAttributeName made the  
text look blury.


___

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


Re: NSObliquenessAttributeName, labelFontOfSize, Italic

2009-03-24 Thread Eric Gorr


On Mar 23, 2009, at 10:34 AM, Eric Gorr wrote:


I found this old thread:

http://lists.apple.com/archives/Cocoa-dev/2007/Jan/msg00181.html

which discusses the same problem I am experiencing. I need an italic  
version of Lucida Grande, which is the font currently returned by  
labelFontOfSize.


But, of course, I need a generic solution since labelFontOfSize may  
not always return Lucida Grande. Now, I could select a font like  
Helvetica Neue which has all of the various traits I need, but I  
would rather use the font returned by labelFontOfSize since I am  
drawing a label.


The solution proposed in the thread was to just add  
NSObliquenessAttributeName, which is easy enough, but I am not sure  
what the appropriate angle should be.


Is there a standard angle which should be used in this situation?


Well, actually, considering that using NSObliquenessAttributeName  
caused the text to look blury, I switched to userFontOfSize which  
provides a font with a clean italic version.


If anyone has a better solution, I would be interested.

I filed bug report rdar://6715356 requesting that labelFontOfSize  
return a font with a clean italic and bold-italic variant and suggest  
others do the same if they want this as well.


___

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


NSObliquenessAttributeName, labelFontOfSize, Italic

2009-03-23 Thread Eric Gorr

I found this old thread:

http://lists.apple.com/archives/Cocoa-dev/2007/Jan/msg00181.html

which discusses the same problem I am experiencing. I need an italic  
version of Lucida Grande, which is the font currently returned by  
labelFontOfSize.


But, of course, I need a generic solution since labelFontOfSize may  
not always return Lucida Grande. Now, I could select a font like  
Helvetica Neue which has all of the various traits I need, but I would  
rather use the font returned by labelFontOfSize since I am drawing a  
label.


The solution proposed in the thread was to just add  
NSObliquenessAttributeName, which is easy enough, but I am not sure  
what the appropriate angle should be.


Is there a standard angle which should be used in this situation?



___

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


Re: NSObliquenessAttributeName, labelFontOfSize, Italic

2009-03-23 Thread Tobias Zimmerman
 From: Eric Gorr mail...@ericgorr.net
 Subject: NSObliquenessAttributeName, labelFontOfSize,  Italic

 The solution proposed in the thread was to just add
 NSObliquenessAttributeName, which is easy enough, but I am not sure
 what the appropriate angle should be.
 
 Is there a standard angle which should be used in this situation?
 

I found through trial and error that 0.15 produces the most acceptable
simulation of italic.  Of course, since this is an aesthetic decision,
others might disagree.

(Apple should include an italic version of the font if it is the default for
NSTableView (it is, right?).  It took me a lot of head scratching to figure
out why binding a boolean to the Italic property of various cells was
producing no effect whatsoever, when binding to Bold worked fine!).




___

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