alpha
Login
or
Join now
yemou.pink
/
scripts
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
prefon: update usage statement
author
yemou
date
4 years ago
(Aug 10, 2021, 1:09 PM -0400)
commit
45ee7d63
45ee7d63cdd67edcaebd060158c3c2a23b5bcc9a
parent
f0aca02a
f0aca02a7da06e6c92fbe87bc0e1f19a09232bb3
+22
-22
1 changed file
Expand all
Collapse all
Unified
Split
scritps
prefon
+22
-22
scritps/prefon
Reviewed
···
2
2
# Script to preview fonts
3
3
4
4
usage() {
5
5
-
printf '%b\n' "${0##*/} [-F FILE | -S | -t STRING] [OPTIONS]" \
6
6
-
"actions:" \
7
7
-
"\t-F FILE - read from file" \
8
8
-
"\t-S - read from stdin" \
9
9
-
"\t-t STRING - use a string" \
10
10
-
"\noptions:" \
11
11
-
"\t-b SIZE - border size" \
12
12
-
"\t-c COLORS - set the color of the text and background" \
13
13
-
"\t-f FONT - which font to preview" \
14
14
-
"\t-h - display this message" \
15
15
-
"\t-i - do not generate an inverse image" \
16
16
-
"\t-o FILE - output file for the generated image" \
17
17
-
"\t-s SIZE - size of the font" \
18
18
-
"\ndefault values:" \
19
19
-
"These values can be set before execution to change default values" \
20
20
-
"\tPREFON_ACTION=text (file, stdin, or text)" \
21
21
-
"\tPREFON_BORDER_SIZE=16" \
22
22
-
"\tPREFON_COLORS=\"000000,ffffff\"" \
23
23
-
"\tPREFON_FONT=\"monospace\"" \
24
24
-
"\tPREFON_OUTPUT=\"/tmp/prefon.png\"" \
25
25
-
"\tPREFON_SIZE=16" \
26
26
-
"\tPREFON_TEXT=\"The quick brown fox jumps\\\n over the lazy dog\"" \
5
5
+
printf '%b\n' "${0##*/} [-F FILE | -S | -t STRING] [OPTIONS]" \
6
6
+
"actions:" \
7
7
+
"\t-F FILE - read from file" \
8
8
+
"\t-S - read from stdin" \
9
9
+
"\t-t STRING - use a string" \
10
10
+
"\noptions:" \
11
11
+
"\t-b SIZE - border size" \
12
12
+
"\t-c COLORS - set the color of the text and background" \
13
13
+
"\t-f FONT - which font to preview" \
14
14
+
"\t-h - display this message" \
15
15
+
"\t-i - generate the inverse image (horizontal, vertical, none)" \
16
16
+
"\t-o FILE - output file for the generated image" \
17
17
+
"\t-s SIZE - size of the font" \
18
18
+
"\ndefault values:" \
19
19
+
"These values can be set before execution to change default values" \
20
20
+
"\tPREFON_ACTION=text (file, stdin, or text)" \
21
21
+
"\tPREFON_BORDER_SIZE=16" \
22
22
+
"\tPREFON_COLORS=\"000000,ffffff\"" \
23
23
+
"\tPREFON_FONT=\"monospace\"" \
24
24
+
"\tPREFON_OUTPUT=\"/tmp/prefon.png\"" \
25
25
+
"\tPREFON_SIZE=16" \
26
26
+
"\tPREFON_TEXT=\"The quick brown fox jumps\\\n over the lazy dog\"" \
27
27
"\tPREFON_INVERSE=vertical (horizontal, vertical, none)"
28
28
}
29
29