···22# Script to preview fonts
3344usage() {
55- printf '%b\n' "${0##*/} [-F FILE | -S | -t STRING] [OPTIONS]" \
66- "actions:" \
77- "\t-F FILE - read from file" \
88- "\t-S - read from stdin" \
99- "\t-t STRING - use a string" \
1010- "\noptions:" \
1111- "\t-b SIZE - border size" \
1212- "\t-c COLORS - set the color of the text and background" \
1313- "\t-f FONT - which font to preview" \
1414- "\t-h - display this message" \
1515- "\t-i - do not generate an inverse image" \
1616- "\t-o FILE - output file for the generated image" \
1717- "\t-s SIZE - size of the font" \
1818- "\ndefault values:" \
1919- "These values can be set before execution to change default values" \
2020- "\tPREFON_ACTION=text (file, stdin, or text)" \
2121- "\tPREFON_BORDER_SIZE=16" \
2222- "\tPREFON_COLORS=\"000000,ffffff\"" \
2323- "\tPREFON_FONT=\"monospace\"" \
2424- "\tPREFON_OUTPUT=\"/tmp/prefon.png\"" \
2525- "\tPREFON_SIZE=16" \
2626- "\tPREFON_TEXT=\"The quick brown fox jumps\\\n over the lazy dog}\"" \
55+ printf '%b\n' "${0##*/} [-F FILE | -S | -t STRING] [OPTIONS]" \
66+ "actions:" \
77+ "\t-F FILE - read from file" \
88+ "\t-S - read from stdin" \
99+ "\t-t STRING - use a string" \
1010+ "\noptions:" \
1111+ "\t-b SIZE - border size" \
1212+ "\t-c COLORS - set the color of the text and background" \
1313+ "\t-f FONT - which font to preview" \
1414+ "\t-h - display this message" \
1515+ "\t-i - do not generate an inverse image" \
1616+ "\t-o FILE - output file for the generated image" \
1717+ "\t-s SIZE - size of the font" \
1818+ "\ndefault values:" \
1919+ "These values can be set before execution to change default values" \
2020+ "\tPREFON_ACTION=text (file, stdin, or text)" \
2121+ "\tPREFON_BORDER_SIZE=16" \
2222+ "\tPREFON_COLORS=\"000000,ffffff\"" \
2323+ "\tPREFON_FONT=\"monospace\"" \
2424+ "\tPREFON_OUTPUT=\"/tmp/prefon.png\"" \
2525+ "\tPREFON_SIZE=16" \
2626+ "\tPREFON_TEXT=\"The quick brown fox jumps\\\n over the lazy dog\"" \
2727 "\tPREFON_INVERSE=vertical (horizontal, vertical, none)"
2828}
2929