• 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: Using NSSmallCapsFontMask?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSSmallCapsFontMask?


  • Subject: Re: Using NSSmallCapsFontMask?
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 6 Apr 2004 12:25:55 -0700

On Apr 6, 2004, at 2:01 AM, Matt Gough wrote:

I am trying to get an NSFont with the NSSmallCapsFontMask trait, but whenever I do so, my text doesn't get drawn as small caps (via an AttributedString). I know things are generally right in my app, as using NSBoldFontMask and or NSItalicFontMask behave as expected.

Bold and italic work as you expect because you are using them with fonts that have bold and italic variants installed on your system--if you take a look you probably will discover that this is not the case with all fonts. Most of the fonts on your system probably have bold and italic variants available, but not small caps variants. If the font does not have such a variant, Cocoa will not synthesize one for you. In the case of small caps, you can simulate the effect by uppercasing and reducing the font size, although that may not be the precise typographic equivalent of a true small caps font.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Using NSSmallCapsFontMask?
      • From: Steve Sims <email@hidden>
References: 
 >Using NSSmallCapsFontMask? (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: instanceMethodSignatureForSelector always nil
  • Next by Date: Re: Document Types
  • Previous by thread: Using NSSmallCapsFontMask?
  • Next by thread: Re: Using NSSmallCapsFontMask?
  • Index(es):
    • Date
    • Thread