You are not logged in.

#1 2025-06-15 14:50:46

AstroTaffer
Member
From: Yekaterinburg
Registered: 2025-06-15
Posts: 1

Passing "-d" flag to FONT in vconsole.conf

Hello. I use bare Linux console and want change the font it utilizes. I want it to be cyr-sun16 (which is part of kbd package) with "-d" flag to double it's size.

So, just like the wiki suggests

setfont -d cyr-sun16

works just fine.

But it seems I can't use "-d" flag in vconsole.conf, i.e. with

FONT=cyr-sun16

console font is set accordingly, but something like

FONT="cyr-sun16 -d"

results in error:

# journalctl -b -g "font"

systemd-vconsole-setup[505]: setfont: ERROR setfont.c:434 kfont_load_font: Unable to find file: cyr-sun16 -d
systemd-vconsole-setup[502]: /usr/bin/setfont failed with exit status 66.

The console font stays unaffected.

I made this workaround in my .bashrc:

if [[ ${TERM} == "linux" ]]; then
    /bin/setfont -d /usr/share/kbd/consolefonts/cyr-sun16
fi

but it works only after login, obviously. Not to mention that I have to copy-paste it for every user on the machine.

Is there a more convenient way to do this?


Your personal overmind

Offline

#2 2025-06-16 13:35:18

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,913
Website

Re: Passing "-d" flag to FONT in vconsole.conf

You should make a feature request and systemd github, to add font size doubling to  /usr/lib/systemd/systemd-vconsole-setup

Offline

Board footer

Powered by FluxBB