From c9cb90c4fd082f5e325beede70bc5010756b41dd Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Wed, 11 Sep 2024 20:19:57 +0200 Subject: [PATCH] Bump default font size to 32. https://github.com/jwilk/ubanner/issues/3 --- completion/zsh/_ubanner | 4 ++-- doc/README | 4 ++-- doc/ubanner.1 | 6 +++--- ubanner | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/completion/zsh/_ubanner b/completion/zsh/_ubanner index 6754938..0a230ac 100644 --- a/completion/zsh/_ubanner +++ b/completion/zsh/_ubanner @@ -3,7 +3,7 @@ # Copyright © 2024 Christopher Bock # SPDX-License-Identifier: MIT -# SHA-256(help) = 3b402f915db43ab07d8699098cf5746bc6ce7768d32cf74cc9dac4b5ea3ee78b +# SHA-256(help) = ddbff3e9b1bb9b9d8f33022c1d7f768f8325d23f595fc48c34438bd4b8301d0e local arguments @@ -11,7 +11,7 @@ arguments=( '--trim[trim leading/trailing empty lines]' '(-f --font)'{-f,--font}'[use this font face]:font:->fonts' + '(fs)' - '(-s --font-size)'{-s,--font-size}'[font size in pixels]: :_numbers -d28 -l14 -m280' + '(-s --font-size)'{-s,--font-size}'[font size in pixels]: :_numbers -d32 -l16 -m320' '(-S --full-screen)'{-S,--full-screen}'[max font size to fit terminal window]' + '(excl)' {-h,--help}'[show help]' diff --git a/doc/README b/doc/README index a1fba15..9b73264 100644 --- a/doc/README +++ b/doc/README @@ -16,10 +16,10 @@ Overview --list-fonts print list of available font faces --trim trim leading/trailing empty lines -f FONT, --font FONT use this font face - -s N, --font-size N font size in pixels (default: 28) + -s N, --font-size N font size in pixels (default: 32) -S, --full-screen max font size to fit terminal window - $ ubanner -f 'DejaVu Sans' -s 32 'd͡ʒ' + $ ubanner -f 'DejaVu Sans' 'd͡ʒ' ░░░▒▒▒▒▒▒▒▒░░░ ░▒█████▒▒▒▒▒▒▒▒▒▒█████▒░ ██▒░ ░░▒██ diff --git a/doc/ubanner.1 b/doc/ubanner.1 index fac75ab..372c09b 100644 --- a/doc/ubanner.1 +++ b/doc/ubanner.1 @@ -1,7 +1,7 @@ .\" Copyright © 2024 Jakub Wilk .\" SPDX-License-Identifier: MIT -.\" SHA-256(help) = 3b402f915db43ab07d8699098cf5746bc6ce7768d32cf74cc9dac4b5ea3ee78b +.\" SHA-256(help) = ddbff3e9b1bb9b9d8f33022c1d7f768f8325d23f595fc48c34438bd4b8301d0e .TH UBANNER 1 2024-03-23 "ubanner 0.1" .SH NAME @@ -43,7 +43,7 @@ Set font face to .BR \-s ", " \-\-font\-size " \fIN\fP" Set font size to .IR N " pixels." -The default is 28. +The default is 32. .TP .BR \-S ", " \-\-full\-screen Use the maximum font size to fit the terminal window. @@ -58,7 +58,7 @@ Show help message and exit. Show version information and exit. .SH EXAMPLE .EX -$ ubanner \-f \(aqDejaVu Sans\(aq \-s 32 $\(aqd\eu0361\eu0292\(aq +$ ubanner \-f \(aqDejaVu Sans\(aq $\(aqd\eu0361\eu0292\(aq +++********+++ +*#####**********#####*+ ##*+ ++*## diff --git a/ubanner b/ubanner index f402fd8..9d992bd 100755 --- a/ubanner +++ b/ubanner @@ -96,7 +96,7 @@ def pango_render(text, size=(76, 24), font=None, font_size=None): yield s.rstrip() class default: - font_size = 28 + font_size = 32 class act_list_fonts(argparse.Action): def __call__(self, *args, **kwargs):