| 1 | # Standard OpenType Font Features |
| 2 | |
| 3 | Libertinus supports several OpenType features. |
| 4 | Some are enabled by default (`-`) others have to be opted in (`+`). |
| 5 | |
| 6 | - Small Caps: `+smcp` and `+c2sc` |
| 7 | - Ligatures and Contextual Alternates: `-liga`, `+hlig`, `+dlig`; `-calt` |
| 8 | - Kerning: `-kern` |
| 9 | - Capital Spacing: `+cpsp`, `case` |
| 10 | - Slashed zero: `+zero` |
| 11 | - Numerals: `-tnum`, `+pnum`, `-lnum`, `+onum`, `+pnum+onum` |
| 12 | - Vulgar fractions: `+frac` |
| 13 | - Subscripts and Superscripts: `+sinf`, `+sups` |
| 14 | - Diacritic marks: `-mark`, `-mkmk` |
| 15 | - Stylistic alternates: `+salt` |
| 16 | |
| 17 | Most of these can be accessed by high-level CSS properties or values |
| 18 | and by GUI controls in DTP software. |
| 19 | |
| 20 | ## Cased forms: `+case` |
| 21 | |
| 22 | All digits and some punctuation characters (i.e. parentheses, guillemets and hyphen) |
| 23 | use shapes that better fit with all-uppercase text (`.cap` or `.sc`). |
| 24 | |
| 25 | ## Standard ligatures: `-liga` |
| 26 | |
| 27 | In serif faces, |
| 28 | the Latin lowercase letter sequences *ſſ*, *ſſi*, *ſſj*, *ſſk*, *ſſl*, *ſh*, *ſi*, *ſj*, *ſl*, *ſs*, *ſt*, *ff*, *ffh*, *ffi*, *ffj*, *ffk*, *ffl*, *fh*, *fi*, *fj*, *fk*, *fl*, *ft* |
| 29 | form default ligatures. |
| 30 | |
| 31 | In sans-serif faces, |
| 32 | only the Latin lowercase letter sequences *ff* (also if the second one has a shortened head) and *ft* |
| 33 | form default ligatures. |
| 34 | |
| 35 | The related feature `clig` is not used. |
| 36 | |
| 37 | The respective CSS property is `font-variant-ligatures` with the value `common-ligatures` (or `no-common-ligatures`). |
| 38 | |
| 39 | ## Discretionary and Historical Ligatures: `+dlig`, `+hlig` |
| 40 | |
| 41 | The only historical ligatures supported are Latin lowercase *st* and *ct* in all faces. |
| 42 | |
| 43 | In all faces, |
| 44 | Latin lowercase letter sequences *tt* and *tz* |
| 45 | form discretionary ligatures. |
| 46 | Only in serif faces (i.e. non-sans-serif), |
| 47 | Latin letter sequences *Th*, *ck* and *ch* |
| 48 | also form discretionary ligatures. |
| 49 | These can all be manually forced by using ZWJ (U+200D) between letters when just the default feature `liga` is active. |
| 50 | |
| 51 | The respective CSS property is `font-variant-ligatures` with the values `discretionary-ligatures` and `historical-ligatures`. |
| 52 | |
| 53 | ## Contextual alternates: `-calt` |
| 54 | |
| 55 | In all faces, |
| 56 | the Latin capital and small-capital letter *Q* gains a long tail if followed by either lowercase or small-capital letter *u* or *v*. |
| 57 | |
| 58 | The Latin lowercase letter *f*, even when part of the ligature *ff*, has a shortened head |
| 59 | if followed by closing parentheses, top quotation mark, lowercase letter with ascending left leg, lowercase letter with diacritic mark above or uppercase letter not starting with a leg or stem on the left. |
| 60 | |
| 61 | The related feature `clig` is not used. |
| 62 | |
| 63 | The respective CSS property is `font-variant-ligatures` with the value `contextual` (or `no-contextual`). |
| 64 | |
| 65 | ## Localized alternates: `locl` |
| 66 | |
| 67 | For Serbian and Macedonian, |
| 68 | in all faces, |
| 69 | the Cyrillic lowercase letter be *б* |
| 70 | and in italic faces, |
| 71 | the Cyrillic lowercase letters ghe *г*, gje *ѓ*, de *д*, pe *п* and te *т* |
| 72 | are replaced by alternate glyphs. |
| 73 | |
| 74 | For Scandinavian languages, because of preferences in Sami typography, |
| 75 | the Latin uppercase letter Eng *Ŋ* uses a alternative glyph, cf. `ss07`. |
| 76 | |
| 77 | For Turkic languages, |
| 78 | ligatures where the Latin lowercase letter *i* is the second part are deactivated, |
| 79 | i.e. *fi*, *ffi*, *ſi* and *ſſi*. |
| 80 | The small-capitals handling of *i* / *ı* does not depend on `locl`, but is part of `smcp` (and `c2sc`). |
| 81 | |
| 82 | ## Numerals: `-tnum`, `+pnum`, `-lnum`, `+onum`, `+pnum+onum` |
| 83 | |
| 84 | Except for Libertinus Math, |
| 85 | the standard digits can be forced to *old-style* forms (with ascenders and descenders) with `onum` (`.taboldstyle`), |
| 86 | to default *lining* forms with `lnum`, |
| 87 | to *proportional* forms with `pnum` (`.fitted`), |
| 88 | to *tabular* (fixed-width) forms with `tnum`. |
| 89 | The latter two also apply to Euro *€* and Yen *¥* currency symbols and trump the other features. |
| 90 | |
| 91 | The respective CSS property is `font-variant-numeric` with the values `oldstyle-nums`, `lining-nums`, `proportional-nums` and `tabular-nums`, respectively. |
| 92 | |
| 93 | ## Vulgar fractions: `+frac`; `subs`, `sups`; `sinf` |
| 94 | |
| 95 | The same sets of inferior/subscript and superior/superscript glyphs are used for various features. |
| 96 | |
| 97 | The respective CSS property for `frac` is `font-variant-numeric` with the value `diagonal-fractions`. The value `stacked-fraction` is not supported. |
| 98 | |
| 99 | # Custom OpenType Font Features: Stylistic Sets |
| 100 | |
| 101 | ## Stylistic alternates: `+salt` |
| 102 | |
| 103 | For non-sans-serif faces, |
| 104 | Latin uppercase letters *J*, *K*, *R* and *W* use alternate glyphs (`.alt`). |
| 105 | |
| 106 | For small-caps faces, |
| 107 | Latin lowercase letters *a*, *q*, *ŋ* and *ß* use alternate glyphs (`.scalt` etc.). |
| 108 | |
| 109 | In all faces, |
| 110 | Latin uppercase letters *Q*, eng *Ŋ* and eszet *ẞ*, Latin lowercase letters *h*, *y* and Eszet *ß*, |
| 111 | Greek lowercase letters Beta *β*, Theta *θ*, Kappa *κ* and Phi *φ*, |
| 112 | Cyrillic lowercase letter Be *б* |
| 113 | and the ampersand *&* use alternate glyphs, cf. `calt`, `ss03`, `ss04`, `ss06`, `ss07`, `locl`. |
| 114 | |
| 115 | The respective CSS property is `font-variant-alternates` with the value `stylistic(<feature-value-name>)`. |
| 116 | |
| 117 | ## Stylistic Set 1 `ss01` *Low diaeresis on ‘A’, ‘E’, ‘O’* |
| 118 | |
| 119 | Intended for German, the umlaut dots above the Latin capital letters *A* and *O* (*Ä*, *Ö*) are moved further apart while the ones above *U* (*Ü*) are put closer together. |
| 120 | |
| 121 | ## Stylistic Set 2 `ss02` *Swashy ‘J’ ‘K’ ‘R’* |
| 122 | |
| 123 | A bit more swashy, cursive look with elongated tails for Latin uppercase letter *K* and *R* and a left-hand horizontal top for *J*. |
| 124 | This does not apply to sans-serif faces. |
| 125 | |
| 126 | ## Stylistic Set 3 `ss03` *‘double s’ to two ‘s’* |
| 127 | |
| 128 | All variants of German eszett (lowercase *ß*, uppercase *ẞ* and small-capital) are rendered as round-s digraphs *SS/ss* instead, very applicable to Swiss German texts. |
| 129 | |
| 130 | ## Stylistic Set 4 `ss04` *Upper case ‘double s’ to two ‘S’* |
| 131 | |
| 132 | Only the uppercase German eszett *ẞ* is rendered as a round-s digraph *SS*; subset of `ss03`. |
| 133 | |
| 134 | ## Stylistic Set 5 `ss05` *Crossed ‘W’* |
| 135 | |
| 136 | Latin uppercase letter *W* is rendered as a ligature of two *V*, i.e. the middle verticals are longer, as used in the Wikipedia logo. |
| 137 | This does not apply to sans-serif faces. |
| 138 | |
| 139 | ## Stylistic Set 6 `ss06` *Swash ‘&’* |
| 140 | |
| 141 | The ampersand *&* is rendered as an *et* ligature. |
| 142 | |
| 143 | ## Stylistic Set 7 `ss07` *Swap ‘Eng’ forms* |
| 144 | |
| 145 | The uppercase letter Eng *Ŋ*, i.e. an *N* with a descending tail on the right leg, uses the capital *N* glyph as its base instead of the default enlarged lowercase *n* glyph. |
| 146 | The localized `locl` UC Style for Sami is changed the other way around. |