Skip to content

Commit

Permalink
Bump default font size to 32.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Sep 11, 2024
1 parent 4d28121 commit c9cb90c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions completion/zsh/_ubanner
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# Copyright © 2024 Christopher Bock <[email protected]>
# SPDX-License-Identifier: MIT

# SHA-256(help) = 3b402f915db43ab07d8699098cf5746bc6ce7768d32cf74cc9dac4b5ea3ee78b
# SHA-256(help) = ddbff3e9b1bb9b9d8f33022c1d7f768f8325d23f595fc48c34438bd4b8301d0e

local arguments

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]'
Expand Down
4 changes: 2 additions & 2 deletions doc/README
Original file line number Diff line number Diff line change
Expand Up @@ -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͡ʒ'
░░░▒▒▒▒▒▒▒▒░░░
░▒█████▒▒▒▒▒▒▒▒▒▒█████▒░
██▒░ ░░▒██
Expand Down
6 changes: 3 additions & 3 deletions doc/ubanner.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" Copyright © 2024 Jakub Wilk <[email protected]>
.\" SPDX-License-Identifier: MIT

.\" SHA-256(help) = 3b402f915db43ab07d8699098cf5746bc6ce7768d32cf74cc9dac4b5ea3ee78b
.\" SHA-256(help) = ddbff3e9b1bb9b9d8f33022c1d7f768f8325d23f595fc48c34438bd4b8301d0e

.TH UBANNER 1 2024-03-23 "ubanner 0.1"
.SH NAME
Expand Down Expand Up @@ -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.
Expand All @@ -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
+++********+++
+*#####**********#####*+
##*+ ++*##
Expand Down
2 changes: 1 addition & 1 deletion ubanner
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c9cb90c

Please sign in to comment.