Fonts
A font can either be specified directly via its face or via CSS styles. In CSS the font is never specified directly but instead via the font-family and various attributes.
Standard Fonts
The Standard font family to be used is 'Times New Roman', 12 px.
These are the fonts where all 4 basic faces are available: Regular, Bold, Italic and Bold/Italic.
Arial
- Regular:
ArialMT
- Bold:
Arial-BoldMT
- Italic:
Arial-ItalicMT
- Bold/Italic:
Arial-BoldItalicMT
Baskerville
- Regular:
Baskerville
- Bold:
Baskerville-SemiBold
- Italic:
Baskerville-Italic
- Bold/Italic:
Baskerville-SemiBoldItalic
Cochin
- Regular:
Cochin
- Bold:
Cochin-Bold
- Italic:
Cochin-Italic
- Bold/Italic:
Cochin-BoldItalic
Courier
- Regular:
Courier
- Bold:
Courier-Bold
- Italic:
Courier-Oblique
- Bold/Italic:
Courier-BoldOblique
Courier New
- Regular:
CourierNewPSMT
- Bold:
CourierNewPS-BoldMT
- Italic:
CourierNewPS-ItalicMT
- Bold/Italic:
CourierNewPS-BoldItalicMT
Georgia
- Regular:
Georgia
- Bold:
Georgia-Bold
- Italic:
Georgia-Italic
- Bold/Italic:
Georgia-BoldItalic
Helvetica
- Regular:
Helvetica
- Bold:
Helvetica-Bold
- Italic:
Helvetica-Oblique
- Bold/Italic:
Helvetica-BoldOblique
Helvetica Neue
- Regular:
HelveticaNeue
- Bold:
HelveticaNeue-Bold
- Italic:
HelveticaNeue-Italic
- Bold/Italic:
HelveticaNeue-BoldItalic
Palatino
- Regular:
Palatino-Roman
- Bold:
Palatino-Bold
- Italic:
Palatino-Italic
- Bold/Italic:
Palatino-BoldItalic
Times New Roman
- Regular:
TimesNewRomanPSMT
- Bold:
TimesNewRomanPS-BoldMT
- Italic:
TimesNewRomanPS-ItalicMT
- Bold/Italic:
TimesNewRomanPS-BoldItalicMT
Trebuchet MS
- Regular:
TrebuchetMS
- Bold:
TrebuchetMS-Bold
- Italic:
TrebuchetMS-Italic
- Bold/Italic:
Trebuchet-BoldItalic
Verdana
- Regular:
Verdana
- Bold:
Verdana-Bold
- Italic:
Verdana-Italic
- Bold/Italic:
Verdana-BoldItalic
Custom Fonts
Usage of custom fonts is supported. You have to register these in the info.plist.
Note: For some fonts you might have to bundle the normal as well as the bold variant for CTFontDescriptor to find the normal font.
Core Text automatically display Right-to-Left Text as such if only RTL characters are used
XB Niloofar:
بِسْمِ اللّٰهِ
American Typewriter:
AmericanTypewriter
American Typewriter Bold:
AmericanTypewriter
Font Variants
The font variant 'Small Caps' is supported by synthesizing an attributed string that has the lower case characters in the same font as the upper case ones, but 30% smaller.
Helvetica (synthesized):
The Quick Brown Fox Jumps ...
HoeflerText (native, iPad only):
The Quick Brown Fox Jumps ...
Supported values for the style font-variant: