# SIL Fonts - Using Font Features

## Characters and Font Features

Each Unicode character supported by our fonts is typically represented by a single glyph, although that glyph may change depending on what other characters are in the sequence nearby, or may even be combined with other glyphs. There are, however, situations in which a different style or appearance of a glyph is preferred. For example:

- a different typographic style (e.g. small caps)
- text in a particular language (e.g. Serbian)
- a special use (e.g. literacy teaching)
- ornamental purposes (e.g. certain ligatures)

These alternate glyphs can be controlled through the use of font features. These are user-selectable features applied to text, and often activated in applications through a font properties menu item, dialog, or style definition. They depend on either OpenType or Graphite technology. A font may include features for either technology—or both.

Features may be activated through:

- a special UI setting (Properties / OpenType / All Small Caps)
- by using a feature’s four-letter ID or tag (`'smcp'`, `'ss05'`, `'cv01'` )
- by referring to the feature and setting by name (Uppercase Eng alternates=Large eng on baseline)
- by selecting a language (Serbian)

## Application support

There is no standard method used by all applications. Every application tends to have a unique way to control features. Applications also differ in which types of features they support. For example, Adobe InDesign supports stylistic set features (`ss##`) but offers no easy way to control character variant features (`cv##`).

The following sections describe how to activate particular features in individual applications and describe any limits on supported features. Examples of some features are given, but for details of which fonts support which features see the individual font project documentation.

### Web browsers

See separate page about Using SIL Fonts on Web Pages.

### Adobe InDesign (and similar Adobe apps)

Select the text and apply the feature as follows, either using the OpenType button (Properties palette, Character section) or the OpenType submenu of the Character palette. Some of these settings can also be applied in style definitions.

Alternate glyphs for individual characters can also be chosen by selecting the character and choosing the alternate from the set of choices that appear under the character.

- Common features: Small caps: OpenType, All Small Caps.

- Stylistic sets: OpenType, Stylistic Sets, then choose the feature by name.

- Character variants: Not supported. However it may work to activate the feature via javascript. See this Github project for examples of scripts that can be placed in the InDesign scripts folder. One is a dialog prompt to enter the cv value you want. The other is a custom script that turns a cv feature on and then off like a switch when you run it (double-click).

- Language-specific alternates: Set the language using the drop-down menu in Properties palette, Character section. If the language you want is not in that list there may be ways to add support to InDesign, although we have not thoroughly tested them. See this Adobe blog post and the important updates.

- Graphite features: Not supported.

### LibreOffice

Both OpenType and Graphite font features have good support in LibreOffice. Note that if a font supports both OpenType and Graphite, LibreOffice will default to using the Graphite features.

- Language-specific alternates: Set the language in Format / Character / Font. For more information and alternatives see (LO Help) Selecting the Document Language.

There are two ways to activate stylistic sets and character variants, and the type and level of support has slight differences.

#### Using the LibreOffice UI

To activate one or more features select the text, go to Format / Character / Font, choose the Features button, then choose one or more features. These can also be applied when defining a style. Note, however, that there is no way to control multi-valued OpenType features through the UI. It needs to be set using the font description (see below). This limitation does not apply to Graphite features.

- Common features: Listed with a descriptive name, such as “Lowercase to Small Capitals”. Warning: using Format / Character / Font Effects / Case / Small capitals will not use the proper OpenType or Graphite small caps feature!

- Stylistic sets: Listed as “Stylistic Set” and the feature ID number, as in “Stylistic Set 01”.

- Character variants: Listed as “Character Variant” and the feature ID number, as in “Character Variant 05”.

#### Editing the LibreOffice font description

Features can also be turned on by selecting the text, choosing the font, then adding the specific feature settings at the end of the font name in the font selection box using the feature ID, as in: fontname:feature=setting

For example, using the Charis SIL font, the Uppercase Eng alternate “Capital N with tail” would be specified as `Charis SIL:cv43=2`. If you wish to apply two (or more) features, you can separate them with `&amp;`. Thus, `Charis SIL:cv43=2&amp;smcp=1` would apply “Capital N with tail” plus the “Small capitals” feature.

- Common features, stylistic sets, character variants: Use the feature ID, as in `'smcp'`, `'ss01'`, or `'cv05'`.

### Microsoft Word

Support for font features is very limited in Microsoft Word. Even some OpenType behavior that is automatically activated in other apps requires special settings in Word. For example, to enable conjuncts or ligatures go to Format / Font / Advanced / OpenType features and change None to one of the other settings. It may also be necessary to choose Use Contextual Alternates.

- Common features: Small caps: Not supported. Warning: using Format / Font / Effects / Small caps will not use the proper OpenType or Graphite feature!

- Stylistic sets: Select the text and choose Format / Font / Advanced / Stylistic sets. Only one set can be specified, and only by number.

- Character variants: Not supported.

- Language-specific alternates: Select the text and choose Tools / Language then set the language. If the preferred language is not listed it may be possible to add some additional languages. See Microsoft support.

- Graphite features: Not supported.

### XeTeX

Font features can be set in XeTeX font specifications in the source document or stylesheet.

- Common features: Small caps: If using XeLaTeX you can use `^textsc^{small caps text goes here^}` in document text. Otherwise use `+smcp` in the font specification, as in `"Doulos SIL:+smcp"`.

- Stylistic sets, character variants (OpenType): Add `feature=setting` to the font specification using the feature ID, as in `"Charis SIL:+cv43=2"`. Multiple features can be added, separated by `:` or `;`, as in `"Charis SIL:+cv43=2:+ss01=1"`. For non-Latin scripts, add a script code to the font name, such as `"Scheherazade New:script=arab"`. OpenType features may not render properly if the script is not specified.

- Stylistic sets, character variants (Graphite): Add `feature=setting` to the font specification using the feature ID, as in `"Charis SIL:+cv43=2"`. Multiple features can be added, separated by `:` or `;`, as in `"Charis SIL:+cv43=2:+ss01=1"`. It is also possible to specify the feature and setting by name, as in `"Abyssinica SIL/GR:Ethiopic digits=Connected"` (OpenType equivalent: `"Abyssinica SIL:script=Ethi:+cv02=1"`). To force use of Graphite features it may be necessary to add `/GR` to the font name.

- Language-specific alternates: Add `language=code` to the font specification as in `"Scheherazade New:script=arab:language=SND"` This can be added to other feature settings, as in `"Charis SIL:+ss01=1:language=VIT"`. For OpenType the language should be specified using the OpenType Language System Tag, although individual projects may also support additional language tags listed in the documentation. For Graphite specify the language according to the documentation included in the font.

## If your application does not support font features

The only way to control features in applications that support neither OpenType nor Graphite is to create derivative fonts that have the desired behaviors (e.g. alternate glyphs) activated by default. For example, you could have a font called “Gentium Plus UCEng” that is just like Gentium Plus except it normally renders the Eng using the uppercase form. We have created a tool called TypeTuner Web which you can use to create derivative fonts like this based on many of our fonts.

Another good use of TypeTuner Web is to create a small capitals font for use in applications that do not support OpenType small caps (such as Microsoft Word). On TypeTuner Web select the font, choose “Select features”, change the Small Caps setting to “True”, then download and install the font. That will give you a special small capitals font for use in all applications.