| 1 | /** |
| 2 | * @version 7.031 |
| 3 | * @date 2021-01-17 |
| 4 | */ |
| 5 | /** |
| 6 | * Libertinus Font Faces |
| 7 | * ===================== |
| 8 | */ |
| 9 | /** |
| 10 | * Libertinus Serif |
| 11 | * ---------------- |
| 12 | */ |
| 13 | @font-face /* Libertinus Serif Regular Upright */ |
| 14 | { |
| 15 | font-family: Libertinus Serif/*, Libertinus*/; |
| 16 | font-style: normal; |
| 17 | font-weight: 400; |
| 18 | src: local(Libertinus Serif), local(Libertinus Serif Regular), local(Libertinus), |
| 19 | /* local(Linux Libertine), */ |
| 20 | url("static/OTF/LibertinusSerif-Regular.otf") format("opentype"), |
| 21 | url("static/WOFF2/LibertinusSerif-Regular.woff2") format("woff2"); |
| 22 | } |
| 23 | @font-face /* Libertinus Serif Regular Italic */ |
| 24 | { |
| 25 | font-family: Libertinus Serif/*, Libertinus*/; |
| 26 | font-style: italic; |
| 27 | font-weight: 400; |
| 28 | src: local(Libertinus Serif Italic), |
| 29 | url("static/OTF/LibertinusSerif-Italic.otf") format("opentype"), |
| 30 | url("static/WOFF2/LibertinusSerif-Italic.woff2") format("woff2"); |
| 31 | } |
| 32 | @font-face /* Libertinus Serif Semibold Upright */ |
| 33 | { |
| 34 | font-family: Libertinus Serif/*, Libertinus*/; |
| 35 | font-style: normal; |
| 36 | font-weight: 600; |
| 37 | src: local(Libertinus Serif), local(Libertinus Serif Semibold), |
| 38 | url("static/OTF/LibertinusSerif-Semibold.otf") format("opentype"), |
| 39 | url("static/WOFF2/LibertinusSerif-Semibold.woff2") format("woff2"); |
| 40 | } |
| 41 | @font-face /* Libertinus Serif Semibold Italic */ |
| 42 | { |
| 43 | font-family: Libertinus Serif/*, Libertinus*/; |
| 44 | font-style: italic; |
| 45 | font-weight: 600; |
| 46 | src: local(Libertinus Serif Semibold Italic), |
| 47 | url("static/OTF/LibertinusSerif-SemiboldItalic.otf") format("opentype"), |
| 48 | url("static/WOFF2/LibertinusSerif-SemiboldItalic.woff2") format("woff2"); |
| 49 | } |
| 50 | @font-face /* Libertinus Serif Bold Upright */ |
| 51 | { |
| 52 | font-family: Libertinus Serif/*, Libertinus*/; |
| 53 | font-style: normal; |
| 54 | font-weight: 700; |
| 55 | src: local(Libertinus Serif Bold), |
| 56 | url("static/OTF/LibertinusSerif-Bold.otf") format("opentype"), |
| 57 | url("static/WOFF2/LibertinusSerif-Bold.woff2") format("woff2"); |
| 58 | } |
| 59 | @font-face /* Libertinus Serif Bold Italic */ |
| 60 | { |
| 61 | font-family: Libertinus Serif/*, Libertinus*/; |
| 62 | font-style: italic; |
| 63 | font-weight: 700; |
| 64 | src: local(Libertinus Serif Bold Italic), |
| 65 | url("static/OTF/LibertinusSerif-BoldItalic.otf") format("opentype"), |
| 66 | url("static/WOFF2/LibertinusSerif-BoldItalic.woff2") format("woff2"); |
| 67 | } |
| 68 | /** |
| 69 | * ### Libertinus Serif Display ### |
| 70 | */ |
| 71 | @font-face /* Libertinus Serif Display */ |
| 72 | { |
| 73 | font-family: Libertinus /*Serif*/ Display/*, Libertinus*/; |
| 74 | font-style: normal; |
| 75 | font-weight: 400; |
| 76 | src: local(Libertinus Serif Display), |
| 77 | url("static/OTF/LibertinusSerifDisplay-Regular.otf") format("opentype"), |
| 78 | url("static/WOFF2/LibertinusSerifDisplay-Regular.woff2") format("woff2"); |
| 79 | } |
| 80 | /** |
| 81 | * ### Libertinus Serif Initials ### |
| 82 | */ |
| 83 | @font-face /* Libertinus Serif Initials */ |
| 84 | { |
| 85 | font-family: Libertinus /*Serif*/ Initials/*, Libertinus*/; |
| 86 | font-style: normal; |
| 87 | font-weight: 400; |
| 88 | src: local(Libertinus Serif Initials), |
| 89 | url("static/OTF/LibertinusSerifInitials-Regular.otf") format("opentype"), |
| 90 | url("static/WOFF2/LibertinusSerifInitials-Regular.woff2") format("woff2"); |
| 91 | } |
| 92 | /** |
| 93 | * Libertinus Sans |
| 94 | * --------------- |
| 95 | */ |
| 96 | @font-face /* Libertinus Sans Regular Upright */ |
| 97 | { |
| 98 | font-family: Libertinus Sans/*, Biolinum*/; |
| 99 | font-style: normal; |
| 100 | font-weight: 400; |
| 101 | src: local(Libertinus Sans), |
| 102 | url("static/OTF/LibertinusSans-Regular.otf") format("opentype"), |
| 103 | url("static/WOFF2/LibertinusSans-Regular.woff2") format("woff2"); |
| 104 | } |
| 105 | @font-face /* Libertinus Sans Regular Italic */ |
| 106 | { |
| 107 | font-family: Libertinus Sans/*, Biolinum*/; |
| 108 | font-style: italic; |
| 109 | font-weight: 400; |
| 110 | src: local(Libertinus Sans Italic), |
| 111 | url("static/OTF/LibertinusSans-Italic.otf") format("opentype"), |
| 112 | url("static/WOFF2/LibertinusSans-Italic.woff2") format("woff2"); |
| 113 | } |
| 114 | @font-face /* Libertinus Sans Bold Upright */ |
| 115 | { |
| 116 | font-family: Libertinus Sans/*, Biolinum*/; |
| 117 | font-style: normal; |
| 118 | font-weight: 700; |
| 119 | src: local(Libertinus Sans Bold), |
| 120 | url("static/OTF/LibertinusSans-Bold.otf") format("opentype"), |
| 121 | url("static/WOFF2/LibertinusSans-Bold.woff2") format("woff2"); |
| 122 | } |
| 123 | /** |
| 124 | * Libertinus Math |
| 125 | */ |
| 126 | @font-face /* Libertinus Serif Math */ |
| 127 | { |
| 128 | font-family: Libertinus /*Serif*/ Math; |
| 129 | font-style: normal; |
| 130 | font-weight: 400; |
| 131 | src: local(Libertinus Math), |
| 132 | url("static/OTF/LibertinusMath-Regular.otf") format("opentype"), |
| 133 | url("static/WOFF2/LibertinusMath-Regular.woff2") format("woff2"); |
| 134 | } |
| 135 | /** |
| 136 | * Libertinus Mono |
| 137 | */ |
| 138 | @font-face /* Libertinus Serif Mono */ |
| 139 | { |
| 140 | font-family: Libertinus /*Serif*/ Mono; |
| 141 | font-style: normal; |
| 142 | font-weight: 400; |
| 143 | src: local(Libertinus Mono), |
| 144 | url("static/OTF/LibertinusMono-Regular.otf") format("opentype"), |
| 145 | url("static/WOFF2/LibertinusMono-Regular.woff2") format("woff2"); |
| 146 | } |
| 147 | /** |
| 148 | * Libertinus Keyboard |
| 149 | */ |
| 150 | @font-face /* Libertinus Serif Keyboard */ |
| 151 | { |
| 152 | font-family: Libertinus Keyboard; |
| 153 | font-style: normal; |
| 154 | font-weight: 400; |
| 155 | src: local(Libertinus Keyboard), |
| 156 | url("static/OTF/LibertinusKeyboard-Regular.otf") format("opentype"), |
| 157 | url("static/WOFF2/LibertinusKeyboard-Regular.woff2") format("woff2"); |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Standard OpenType Features |
| 162 | * ========================== |
| 163 | * |
| 164 | * Libertinus supports several OpenType features, |
| 165 | * some are enabled by default (`-`) others have to be opted in (`+`), |
| 166 | * most can be accessed by high-level CSS properties and values: |
| 167 | * |
| 168 | * * Small Caps: features `font-variant` and `font-variant-caps` with values `small-caps` (`+smcp`) and `all-small-caps` (`+c2sc`) |
| 169 | * * Ligatures and Contextual Alternates: `-liga`, `+hlig`, `+dlig`; `-calt` |
| 170 | * * Kerning: `-kern` |
| 171 | * * Capital Spacing: `+cpsp`, `case` |
| 172 | * * Slashed zero: `+zero` |
| 173 | * * Numerals: `-tnum`, `+pnum`, `-lnum`, `+onum`, `+pnum+onum` |
| 174 | * * Vulgar fractions: `+frac` |
| 175 | * * Subscripts and Superscripts: `+sinf`, `+sups` |
| 176 | * * Diacritic marks: `-mark`, `-mkmk` |
| 177 | * * Stylistic alternates: `+salt` |
| 178 | */ |
| 179 | /** |
| 180 | * Cased forms: `+case` |
| 181 | * -------------------- |
| 182 | * |
| 183 | * All digits and some punctuation characters (i.e. parentheses, guillemets and hyphen) use shapes that better fit with all-uppercase text (`.cap` or `.sc`). |
| 184 | * |
| 185 | * This should really be automatically activated for `text-transform: uppercase`, but is not as of Level 4 of CSS Fonts and CSS Text. |
| 186 | */ |
| 187 | /** |
| 188 | * Standard ligatures: `-liga` |
| 189 | * --------------------------- |
| 190 | * |
| 191 | * In serif faces, the Latin lowercase letter sequences |
| 192 | * _ſſ_, _ſſi_, _ſſj_, _ſſk_, _ſſl_, _ſh_, _ſi_, _ſj_, _ſl_, _ſs_, _ſt_, |
| 193 | * _ff_, _ffh_, _ffi_, _ffj_, _ffk_, _ffl_, _fh_, _fi_, _fj_, _fk_, _fl_, _ft_ |
| 194 | * form default ligatures. |
| 195 | * In sans-serif faces, only the Latin lowercase letter sequences |
| 196 | * _ff_ (also if the second one has a shortened head) and _ft_ |
| 197 | * form default ligatures. |
| 198 | * |
| 199 | * The related feature `clig` is not used. |
| 200 | * |
| 201 | * The respective CSS property is `font-variant-ligatures` with the value `common-ligatures` (or `no-common-ligatures`). |
| 202 | */ |
| 203 | /** |
| 204 | * Discretionary and Historical Ligatures: `+dlig`, `+hlig` |
| 205 | * -------------------------------------------------------- |
| 206 | * |
| 207 | * The only historical ligatures supported are Latin lowercase _ st_ and _ct_ in all faces. |
| 208 | * |
| 209 | * In all faces, Latin lowercase letter sequences _tt_ and _tz_, |
| 210 | * in serif faces (i.e. non-sans-serif), also _Th_, _ck_ and _ch_, |
| 211 | * form discretionary ligatures. |
| 212 | * |
| 213 | * These can all be manually forced by using ZWJ (U+200D) between letters and just the default feature `liga`, too. |
| 214 | * |
| 215 | * The respective CSS property is `font-variant-ligatures` with the values `discretionary-ligatures` and `historical-ligatures`. |
| 216 | */ |
| 217 | /** |
| 218 | * Contextual alternates: `-calt` |
| 219 | * ------------------------------ |
| 220 | * |
| 221 | * In all faces, |
| 222 | * the Latin capital and small-capital letter *Q* gains a long tail if followed by either lowercase or small-capital letter *u* or *v*, and |
| 223 | * the Latin lowercase letter *f*, even when part of the ligature *ff*, has a shortened head 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 them on the left. |
| 224 | * |
| 225 | * The related feature `clig` is not used. |
| 226 | * |
| 227 | * The respective CSS property is `font-variant-ligatures` with the value `contextual` (or `no-contextual`). |
| 228 | */ |
| 229 | /** |
| 230 | * Localized alternates: `locl` |
| 231 | * ---------------------------- |
| 232 | * |
| 233 | * For Serbian and Macedonian, |
| 234 | * in all faces, the Cyrillic lowercase letter be *б* and |
| 235 | * in italic faces, the Cyrillic llowercase letters ghe *г*, gje *ѓ*, de *д*, pe *п* and te *т* |
| 236 | * are replaced by alternate glyphs. |
| 237 | * For Scandinavian languages, because of preferences in Sami typography, the Latin uppercase letter Eng *Ŋ* uses a alternative glyph, cf. `ss07`. |
| 238 | * For Turkic languages, |
| 239 | * ligatures where the Latin lowercase letter _i_ is the second part are deactivated, i.e. _fi_, _ffi_, _ſi_ and _ſſi_. |
| 240 | * The small-capitals handling of _i_ / _ı_ does not depend on `locl`, but is part of `smcp` (and `c2sc`). |
| 241 | */ |
| 242 | /** |
| 243 | * Numerals: `-tnum`, `+pnum`, `-lnum`, `+onum`, `+pnum+onum` |
| 244 | * ---------------------------------------------------------- |
| 245 | * |
| 246 | * Except for Libertinus Math, the standard digits can be forced |
| 247 | * to _old-style_ forms (with ascenders and descenders) with `onum` (`.taboldstyle`), |
| 248 | * to default _lining_ forms with `lnum`, |
| 249 | * to _proportional_ forms with `pnum` (`.fitted`), |
| 250 | * to _tabular_ (fixed-width) forms with `tnum`. |
| 251 | * The latter two also apply to euro *€* and yen *¥* currency symbols and trump the other features. |
| 252 | * |
| 253 | * The respective CSS property is `font-variant-numeric` with the values `oldstyle-nums`, `lining-nums`, `proportional-nums` and `tabular-nums`. |
| 254 | */ |
| 255 | /** |
| 256 | * Vulgar fractions: `+frac`; `subs`, `sups`; `sinf` |
| 257 | * ------------------------- |
| 258 | * |
| 259 | * The same sets of inferior/subscript and superior/superscript glyphs are used for various features. |
| 260 | * |
| 261 | * The respective CSS property for `frac` is `font-variant-numeric` with the value `diagonal-fractions`. |
| 262 | * The value `stacked-fraction` is not supported. |
| 263 | */ |
| 264 | |
| 265 | /** |
| 266 | * Advanced OpenType Font Features: Stylistic Sets |
| 267 | * =============================================== |
| 268 | */ |
| 269 | |
| 270 | @font-feature-values |
| 271 | Libertinus, |
| 272 | Libertinus Serif, |
| 273 | Libertinus Sans, |
| 274 | Libertinus Math, |
| 275 | Libertinus Mono, |
| 276 | Libertinus Keyboard |
| 277 | { |
| 278 | /** |
| 279 | * Stylistic alternates: `+salt` |
| 280 | * ----------------------------- |
| 281 | * |
| 282 | * For non-sans-serif faces, uppercase letters J, K, R and W use alternate glyphs (`.alt`). |
| 283 | * For small-caps faces, lowercase letters a, q, ŋ and ß use alternate glyphs (`.scalt` etc.). |
| 284 | * In all faces, |
| 285 | * Latin uppercase letters *Q*, eng *Ŋ* and eszet *ẞ*, |
| 286 | * Latin lowercase letters *h*, *y* and eszet *ß*, |
| 287 | * Greek lowercase letters beta *β*, theta *θ*, kappa *κ* and phi *φ*, |
| 288 | * Cyrillic letter be *б* and |
| 289 | * the ampersand *&* |
| 290 | * use alternate glyphs, cf. `calt`, `ss03`, `ss04`, `ss06`, `ss07`, `locl`. |
| 291 | * |
| 292 | * The respective CSS property is `font-variant-alternates` with the value `stylistic(<feature-value-name>)`. |
| 293 | * The definition in CSS does not seem well thought out yet since it always requires a value name. |
| 294 | */ |
| 295 | @stylistic {on: 1;} |
| 296 | /** |
| 297 | * Stylistic Set 1 `ss01` _Low diaeresis on 'A', 'E', 'O'_ |
| 298 | * ------------------------------------------------------- |
| 299 | * |
| 300 | * In German, the umlaut dots above the Latin capital letters *A* and *O* (*Ä*, *Ö*) are sometimes moved further apart while the ones above *U* (*Ü*) are put closer together. |
| 301 | */ |
| 302 | @styleset {low-diaeresis: 1;} |
| 303 | /** |
| 304 | * Stylistic Set 2 `ss02` _Swashy 'J' 'K' 'R'_ |
| 305 | * ------------------------------------------- |
| 306 | * |
| 307 | * A bit more swashy, cursive look with elongated tails for Latin uppercase letter *K* and *R* and a left-hand horizontal top for *J*. |
| 308 | * This does not apply to sans-serif faces. |
| 309 | */ |
| 310 | @styleset {swashy: 2;} |
| 311 | /** |
| 312 | * Stylistic Set 3 `ss03` _'double s' to two 's'_ |
| 313 | * ---------------------------------------------- |
| 314 | * |
| 315 | * All variants of German eszett (lowercase *ß*, uppercase *ẞ* and small-capital) are rendered as round-s digraphs instead, very applicable to Swiss German texts. |
| 316 | */ |
| 317 | @styleset {double-s: 3;} |
| 318 | /** |
| 319 | * Stylistic Set 4 `ss04` _Upper case 'double s' to two 'S'_ |
| 320 | * --------------------------------------------------------- |
| 321 | * |
| 322 | * Only the uppercase German eszett *ẞ* is rendered as a round-s digraph, subset of `ss03`. |
| 323 | */ |
| 324 | @styleset {uppercase-double-s: 4;} |
| 325 | /** |
| 326 | * Stylistic Set 5 `ss05` _Crossed 'W'";_ |
| 327 | * -------------------------------------- |
| 328 | * |
| 329 | * 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. |
| 330 | * This does not apply to sans-serif faces. |
| 331 | */ |
| 332 | @styleset {crossed-W: 5;} |
| 333 | /** |
| 334 | * Stylistic Set 6 `ss06` _Swash '&'_ |
| 335 | * ---------------------------------- |
| 336 | * |
| 337 | * The ampersand *&* is rendered as an _et_ ligature. |
| 338 | */ |
| 339 | @styleset {swash-ampersand: 6;} |
| 340 | /** |
| 341 | * Stylistic Set 7 `ss07` _Swap 'Eng' forms_ |
| 342 | * ----------------------------------------- |
| 343 | * |
| 344 | * 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. The localized `locl` UC Style for Sami is changed the other way around. |
| 345 | */ |
| 346 | @styleset {swap-eng: 7;} |
| 347 | } |