Restoring optional ligatures by resetting letter-spacing (#11202)
* Restoring optional ligatures by resetting letter-spacing * Revert "Restoring optional ligatures by resetting letter-spacing" This reverts commit 6536265ce2c5a2ae81023cc26aaa3cc11e85703b. * Restore ligatures with inter dynamic metrics * lintfix
This commit is contained in:
parent
e6550a33b6
commit
f4e7e08425
1 changed files with 8 additions and 0 deletions
|
@ -92,6 +92,14 @@ html {
|
||||||
body {
|
body {
|
||||||
font: var(--cpd-font-body-md-regular);
|
font: var(--cpd-font-body-md-regular);
|
||||||
letter-spacing: var(--cpd-font-letter-spacing-body-md);
|
letter-spacing: var(--cpd-font-letter-spacing-body-md);
|
||||||
|
/**
|
||||||
|
* We want to apply Inter Dynamic metrics (https://rsms.me/inter/dynmetrics/)
|
||||||
|
* We need to tweak the `letter-spacing` property and doing so, disables by
|
||||||
|
* default the optional ligatures
|
||||||
|
* `font-feature-settings` allows us to override this behaviour and have the
|
||||||
|
* correct ligatures and the proper dynamic metric spacing.
|
||||||
|
*/
|
||||||
|
font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
|
||||||
|
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
color: $primary-content;
|
color: $primary-content;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue