diff --git a/conf.d/consolefont b/conf.d/consolefont index e01ae842b..fb258b002 100644 --- a/conf.d/consolefont +++ b/conf.d/consolefont @@ -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="" diff --git a/init.d/consolefont.in b/init.d/consolefont.in index 6bed0a834..ec66a8f81 100644 --- a/init.d/consolefont.in +++ b/init.d/consolefont.in @@ -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" @@ -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