Saltar al contenido principal

Overview

Many modern fonts provide two (or more) different “styles” of some of the letters in their alphabets (character sets). The standard style is shown by default (without doing anything special), whereas the non-standard/special style is displayed only if the user specifically requests it.

The technical name for these “styles” is “Font Features”.

For example, SIL’s Andika font has two different styles for the letter “a” shown here:

The Bloom editor supports the use of Font Features. In this way, Bloom users can produce books following the specific font requirements of their respective language communities.

To enable a non-standard/special style in a Bloom collection, you must edit the file customCollectionStyles.css and add specific instructions for the features you require for the language you need. This file is located in the main folder for your book collection and must be edited using a plain text editor such as Windows Notepad.

The instructions you give are language-specific. For example, to select the “double-story” letter “a” for French, you would add the following code to this file:

[lang="fr"]
{
font-feature-settings: "ss13" 1;
}

Identifying Feature Settings

To find out which feature setting(s) you need, you must research and find the documentation for the specific font you are planning to use in your books. If you are using an SIL font, look for that information on the page for the font in a bolded link saying “font features” or “smart font features”.

Multiple font features can be specified in the custom CSS file on separate lines.

For example:

[lang="fr"]
{
font-feature-settings: "cv56" 1;
font-feature-settings: "smcp" 1;
font-feature-settings: "ss04" 1;
}