[systemd-devel] [PATCH] Arch: default to FONT=""

Lennart Poettering lennart at poettering.net
Thu Sep 13 00:29:50 PDT 2012


On Tue, 28.08.12 19:29, Tom Gundersen (teg at jklm.no) wrote:

> We do this for several reasons:
> 
>  * it is counter-intuitive that an empty vconsole.conf file is different
>    from adding FONT="";
>  * the version of the default font shipped with Arch (the upstream one)
>    behaves very badly during early boot[0];

Hmm, that sounds like a bug to fix in the font or the console tools?

>  * the kernel already supplies a default font, it seems reasonable to
>    use that unless anything else is specified. This also avoids a
>    needless call to setfont.

> 
> [0]: <http://i.imgur.com/J2tM4.jpg>
> ---
> 
> 
> Any objections to making this the systemd default? We'd rather not deviate
> from upstream unless we have to. I'd be happy to supply the patch and update
> the documentation.

Hmm, so I am tempted to make this change for everybody instead of just
Arch.

But before I do that, I have one question: the default kernel font, does
that do the usual UTF-8 subset that LatArCyrHeb-16 does? If so, then
there is indeed no point in loading a font from userspace, indeed,
especially given that setfont is so awfully slow...

By "usual UTF-8 subset" I mean box chars (i want QR codes on the
console! ;-)) and the range that iso8859-15 covers I guess.

> diff --git a/Makefile.am b/Makefile.am
> index e5ace9b..0b35ba1 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -165,7 +165,7 @@ if TARGET_ARCH
>  AM_CPPFLAGS += \
>  	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
>  	-DKBD_SETFONT=\"/usr/bin/setfont\" \
> -	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
> +	-DDEFAULT_FONT=\"\"
>  else
>  if TARGET_FRUGALWARE
>  AM_CPPFLAGS += \


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list