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. --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 994d58b..0c79ef2 100644 --- a/src/main.c +++ b/src/main.c @@ -754,6 +754,10 @@ static const struct wl_surface_listener dummy_surface_listener = { static void usage() { + /* + * This string literal is more than 4095 characters, which is the + * maximum size guaranteed to work in C, so we have to split it. + */ fprintf(stderr, "%s", "Usage: tofi [options]\n" "\n" @@ -763,6 +767,7 @@ static void usage() " --font Font to use.\n" " --font-size Point size of text.\n" " --font-features Set OpenType font features.\n" +" --font-variations Set OpenType font variations.\n" " --background-color Color of the background.\n" " --outline-width Width of the border outlines.\n" " --outline-color Color of the border outlines.\n" @@ -783,6 +788,8 @@ static void usage() " --result-spacing Spacing between results.\n" " --min-input-width Minimum input width in horizontal mode.\n" " --width Width of the window.\n" + ); + fprintf(stderr, "%s", " --height Height of the window.\n" " --corner-radius Radius of window corners.\n" " --output Name of output to display window on.\n" @@ -831,6 +838,7 @@ const struct option long_options[] = { {"font", required_argument, NULL, 0}, {"font-size", required_argument, NULL, 0}, {"font-features", required_argument, NULL, 0}, + {"font-variations", required_argument, NULL, 0}, {"num-results", required_argument, NULL, 0}, {"selection-color", required_argument, NULL, 0}, {"selection-match-color", required_argument, NULL, 0}, -- cgit v1.2.3