From 8fb1b007ebe93efb6bf6d928edfd235b086ed199 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 20 Nov 2022 18:51:26 +0000 Subject: Add --font-features option. --- doc/config | 10 ++++++++++ doc/tofi.5.md | 11 ++++++++++- doc/tofi.5.scd | 10 +++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/config b/doc/config index c68dae7..ae1e653 100644 --- a/doc/config +++ b/doc/config @@ -18,6 +18,16 @@ # Point size of text. font-size = 24 + # Comma separated list of OpenType font feature settings to apply, + # if supported by the chosen font. The format is similar to the CSS + # "font-feature-settings" property. + # + # Examples: + # + # font-features = "smcp, c2sc" (all small caps) + # font-features = "liga 0" (disable ligatures + font-features = "" + # 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 a534676..dea750c 100644 --- a/doc/tofi.5.md +++ b/doc/tofi.5.md @@ -156,6 +156,15 @@ options. > > Default: 24 +**font-features**=*features* + +> Comma separated list of OpenType font feature settings to apply. The +> format is similar to the CSS "font-feature-settings" property. For +> example, "smcp, c2sc" will turn all text into small caps (if supported +> by the chosen font). +> +> Default: "" + **background-color**=*color* > Color of the background. See **COLORS** for more information. @@ -210,7 +219,7 @@ options. > > Default: "" -**placeholder-color**=*string* +**placeholder-color**=*color* > Color of placeholder input text. See **COLORS** for more information. > diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd index 13b8c13..9ff7f3d 100644 --- a/doc/tofi.5.scd +++ b/doc/tofi.5.scd @@ -135,6 +135,14 @@ options. Default: 24 +*font-features*=_features_ + Comma separated list of OpenType font feature settings to apply. The + format is similar to the CSS "font-feature-settings" property. + For example, "smcp, c2sc" will turn all text into small caps (if + supported by the chosen font). + + Default: "" + *background-color*=_color_ Color of the background. See *COLORS* for more information. @@ -180,7 +188,7 @@ options. Default: "" -*placeholder-color*=_string_ +*placeholder-color*=_color_ Color of placeholder input text. See *COLORS* for more information. Default: #FFFFFFA8 -- cgit v1.2.3