From 8ff917954773b293276c2eda31959acbecdc2421 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 20 Nov 2022 23:50:21 +0000 Subject: Add --font-variations option. --- doc/config | 12 +++++++++++- doc/tofi.5.md | 9 +++++++++ doc/tofi.5.scd | 8 ++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/config b/doc/config index ae1e653..3e28eac 100644 --- a/doc/config +++ b/doc/config @@ -25,9 +25,19 @@ # Examples: # # font-features = "smcp, c2sc" (all small caps) - # font-features = "liga 0" (disable ligatures + # font-features = "liga 0" (disable ligatures) font-features = "" + # Comma separated list of OpenType font variation settings to apply + # to variable fonts. The format is similar to the CSS + # "font-variation-settings" property. + # + # Examples: + # + # font-variations = "wght 900" (Extra bold) + # font-variations = "wdth 25, slnt -10" (Narrow and slanted) + font-variations = "" + # Perform font hinting. Only applies when a path to a font has been # specified via `font`. Disabling font hinting speeds up text # rendering appreciably, but will likely look poor at small font pixel diff --git a/doc/tofi.5.md b/doc/tofi.5.md index dea750c..e5f947b 100644 --- a/doc/tofi.5.md +++ b/doc/tofi.5.md @@ -165,6 +165,15 @@ options. > > Default: "" +**font-variations**=*variations* + +> Comma separated list of OpenType font variation settings to apply. The +> format is similar to the CSS "font-variation-settings" property. For +> example, "wght 900" will set the weight of a variable font to 900 (if +> supported by the chosen font). +> +> Default: "" + **background-color**=*color* > Color of the background. See **COLORS** for more information. diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index 9ff7f3d..acdb16a 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -143,6 +143,14 @@ options. Default: "" +*font-variations*=_variations_ + Comma separated list of OpenType font variation settings to apply. The + format is similar to the CSS "font-variation-settings" property. For + example, "wght 900" will set the weight of a variable font to 900 (if + supported by the chosen font). + + Default: "" + *background-color*=_color_ Color of the background. See *COLORS* for more information. -- cgit v1.2.3