Re: Using NSSmallCapsFontMask?
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.