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

Baskerville

Cochin

Courier

Courier New

Georgia

Helvetica

Helvetica Neue

Palatino

Times New Roman

Trebuchet MS

Verdana


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: