From 26b564eca494f9b6d1e1803124c9aab49a12d1cd Mon Sep 17 00:00:00 2001 From: drify Date: Fri, 18 Oct 2019 08:55:38 +0100 Subject: [PATCH] Add an example: using the variable font in CSS See [Implementing a variable font with fallback web fonts](https://www.zeichenschatz.net/typografie/implementing-a-variable-font-with-fallback-web-fonts.html) for why this syntax --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e3fe70..f44a376 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,11 @@ See [How to enable](https://github.com/tonsky/FiraCode/wiki/How-to-enable-stylis ```css /* Specify in CSS */ -font-family: 'Fira Code', monospace; +code { font-family: 'Fira Code', monospace; } + +@supports (font-variation-settings: normal) { + code { font-family: 'Fira Code VF', monospace; } +} ```