From f4e7e08425d41dbda002bdba71797ea316c0fe45 Mon Sep 17 00:00:00 2001 From: Germain Date: Thu, 13 Jul 2023 15:17:55 +0100 Subject: [PATCH] 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 --- res/css/_common.pcss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/res/css/_common.pcss b/res/css/_common.pcss index b04c5bc9ea..fe9637cdaa 100644 --- a/res/css/_common.pcss +++ b/res/css/_common.pcss @@ -92,6 +92,14 @@ html { body { font: var(--cpd-font-body-md-regular); 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; color: $primary-content;