summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-11-20 18:51:26 +0000
committerPhil Jones <philj56@gmail.com>2022-11-20 18:51:26 +0000
commit8fb1b007ebe93efb6bf6d928edfd235b086ed199 (patch)
tree3baaca8f535f831d4ca1e7b25b72507e882d40ef /doc
parentcd424929714021de0186d40154cbf56ff6b5d423 (diff)
Add --font-features option.
Diffstat (limited to 'doc')
-rw-r--r--doc/config10
-rw-r--r--doc/tofi.5.md11
-rw-r--r--doc/tofi.5.scd10
3 files changed, 29 insertions, 2 deletions
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