From ef0e1cff8d01a148565f65c98d897f1cf0838218 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Fri, 2 Feb 2024 09:39:40 -0700 Subject: [PATCH] Add comment to explain the usage of `font-feature-settings: "ss05"` rule on the DM Mono font GitOrigin-RevId: f9ec7868a425136a9f4b2b8e8546747dcbf434e3 --- services/web/frontend/fonts/dm-mono.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/web/frontend/fonts/dm-mono.css b/services/web/frontend/fonts/dm-mono.css index b63cb44aae..c1dfeee9f0 100644 --- a/services/web/frontend/fonts/dm-mono.css +++ b/services/web/frontend/fonts/dm-mono.css @@ -1,3 +1,9 @@ +/* We're using the "ss05" (stylistic set 5) version of the DM Mono, on the font-feature-settings rule */ +/* https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings */ +/* We use the ss05 specifically to remove the "squiggle" below the f letter. */ +/* You can try removing the `font-feature-settings` rule and check what happens to the letter "f", */ +/* as it's quite hard to describe it with sentences alone */ + @font-face { font-family: 'DM Mono'; font-feature-settings: 'ss05';