Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions conf.d/consolefont
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ consolefont="default8x16"
# default one. Have a look in /usr/share/unimaps for a selection of map files
# you can use.
#unicodemap="iso01"

# customflags is used to pass custom arguments to the setfont command;
# e.g. "-d" for doubling the font size on high pixel density displays.
#customflags=""
3 changes: 2 additions & 1 deletion init.d/consolefont.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ start()
consolefont=${consolefont:-${CONSOLEFONT}}
unicodemap=${unicodemap:-${UNICODEMAP}}
consoletranslation=${consoletranslation:-${CONSOLETRANSLATION}}
customflags=${customflags:-${CUSTOMFLAGS}}

if [ -z "$consolefont" ]; then
ebegin "Using the default console font"
Expand Down Expand Up @@ -52,7 +53,7 @@ start()
[ -d /dev/vc ] && ttydev=/dev/vc/
x=1
while [ $x -le $ttyn ]; do
if ! setfont $consolefont $param -C $ttydev$x >/dev/null; then
if ! setfont $customflags $consolefont $param -C $ttydev$x >/dev/null; then
retval=1
break
fi
Expand Down
Loading