Declared in NSAttributedString+SmallCaps.h

Overview

Methods that generated an attributed string with Small Caps, even if the used fonts don’t support them natively.

This category works equally for Mac and iOS attributed strings.

Class Methods

synthesizedSmallCapsAttributedStringWithText:attributes:

Creates an NSAttributedString from the given text and attributes and synthesizes small caps. On iPad there is only one font that has native small caps, for all other fonts the small caps are synthesized by reduzing the font size for all lowercase characters.

+ (NSAttributedString *)synthesizedSmallCapsAttributedStringWithText:(NSString *)text attributes:(NSDictionary *)attributes

Parameters

text

The string to convert into an attributed string

attributes

A dictionary with attributes for the attributed string

Return Value

An attributed string with synthesized small caps.

Declared In

NSAttributedString+SmallCaps.h