• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I get Lucida Grande italic into my application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get Lucida Grande italic into my application?


  • Subject: Re: How do I get Lucida Grande italic into my application?
  • From: Eric Gorr <email@hidden>
  • Date: Thu, 12 Nov 2009 13:46:12 -0500

Well, I experimented a bit and tried:

const CGFloat kRotationForItalicText = -15.0;

NSAffineTransform *italicTransform = [NSAffineTransform transform];

[italicTransform scaleBy:[NSFont systemFontSizeForControlSize:NSMiniControlSize]];
[italicTransform rotateByDegrees:kRotationForItalicText];

but, the text drawn with the system font created with this transform was not what I would call very readable. A 15 degree rotation seems to be correct.

If anyone has any suggestions on how best to handle this, I would be interested.


On Nov 12, 2009, at 12:39 PM, Eric Gorr wrote:

> I need to be able to do this same thing and found this old thread and reply:
>
>     http://lists.apple.com/archives/Cocoa-dev/2007/Jan/msg00577.html
>
> I assume the answer has not changed. Unfortunately, the link
>
>     <http://trac.webkit.org/projects/webkit/browser/trunk/WebCore/platform/mac/FontMac.mm#L583>
>
> is no longer valid and I was wondering if anyone knew what the appropriate NSAffineTransform would be to pass into +fontWithDescriptor:textTransform:
>
> Ultimately, I believe the call I will want to make is:
>
>     [NSFont fontWithDescriptor:[[NSFont systemFontSizeForControlSize:NSMiniControlSize] fontDescriptor] textTransform:italicTransform];


_______________________________________________

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

References: 
 >How do I get Lucida Grande italic into my application? (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: [Q] copy operation and authorization
  • Next by Date: Re: How do I get Lucida Grande italic into my application?
  • Previous by thread: How do I get Lucida Grande italic into my application?
  • Next by thread: Re: How do I get Lucida Grande italic into my application?
  • Index(es):
    • Date
    • Thread