~alpine/users

2 2

setfont fails to load consolefonts

David Demelier <markand@malikania.fr>
Details
Message ID
<34d578945410bce9e04cfdc378df21fc91151c92.camel@malikania.fr>
DKIM signature
missing
Download raw message
Hello,

Running Alpine 3.11, I have a few fonts including terminus in
/usr/share/consolefonts.

I've been using them since several years on my hidpi laptop but I'm
unable to set them on Alpine, I can't figure out why.

# ls /usr/share/consolefonts/ter-2* 
/usr/share/consolefonts/ter-212n.psf.gz  /usr/share/consolefonts/ter-
218b.psf.gz  /usr/share/consolefonts/ter-
222n.psf.gz  /usr/share/consolefonts/ter-232b.psf.gz
/usr/share/consolefonts/ter-214b.psf.gz  /usr/share/consolefonts/ter-
218n.psf.gz  /usr/share/consolefonts/ter-
224b.psf.gz  /usr/share/consolefonts/ter-232n.psf.gz
/usr/share/consolefonts/ter-214n.psf.gz  /usr/share/consolefonts/ter-
220b.psf.gz  /usr/share/consolefonts/ter-224n.psf.gz
/usr/share/consolefonts/ter-216b.psf.gz  /usr/share/consolefonts/ter-
220n.psf.gz  /usr/share/consolefonts/ter-228b.psf.gz
/usr/share/consolefonts/ter-216n.psf.gz  /usr/share/consolefonts/ter-
222b.psf.gz  /usr/share/consolefonts/ter-228n.psf.gz

If I try to change font from tty setfont complains that the font isn't
available:

# setfont ter-212n
setfont: ter-212n: No such file or directory

What do I miss?

Cheers,

-- 
David
Details
Message ID
<5b270ad5-731c-83a0-254b-b375c1b0fdc1@web.de>
In-Reply-To
<34d578945410bce9e04cfdc378df21fc91151c92.camel@malikania.fr> (view parent)
DKIM signature
missing
Download raw message
Hello David,

 From the command line, you have to use setfont with the full path to the font:
# setfont /usr/share/consolefonts/ter-212n.psf.gz

You can also switch to this font during system boot:

1. Change the consolefont in /etc/config.d/consolefont

from:
consolefont="default8x16.psf.gz"
to:
consolefont="ter-212n.psf.gz"

2. Add the consolefont-"service"

# rc-update add consolefont

3. Test:

# rc-service consolefont start

or reboot the system.

Hope this helps. Regards. / Hilmar.



Am 23.01.20 um 19:43 schrieb David Demelier:
> Hello,
>
> Running Alpine 3.11, I have a few fonts including terminus in
> /usr/share/consolefonts.
>
> I've been using them since several years on my hidpi laptop but I'm
> unable to set them on Alpine, I can't figure out why.
>
> # ls /usr/share/consolefonts/ter-2*
> /usr/share/consolefonts/ter-212n.psf.gz  /usr/share/consolefonts/ter-
> 218b.psf.gz  /usr/share/consolefonts/ter-
> 222n.psf.gz  /usr/share/consolefonts/ter-232b.psf.gz
> /usr/share/consolefonts/ter-214b.psf.gz  /usr/share/consolefonts/ter-
> 218n.psf.gz  /usr/share/consolefonts/ter-
> 224b.psf.gz  /usr/share/consolefonts/ter-232n.psf.gz
> /usr/share/consolefonts/ter-214n.psf.gz  /usr/share/consolefonts/ter-
> 220b.psf.gz  /usr/share/consolefonts/ter-224n.psf.gz
> /usr/share/consolefonts/ter-216b.psf.gz  /usr/share/consolefonts/ter-
> 220n.psf.gz  /usr/share/consolefonts/ter-228b.psf.gz
> /usr/share/consolefonts/ter-216n.psf.gz  /usr/share/consolefonts/ter-
> 222b.psf.gz  /usr/share/consolefonts/ter-228n.psf.gz
>
> If I try to change font from tty setfont complains that the font isn't
> available:
>
> # setfont ter-212n
> setfont: ter-212n: No such file or directory
>
> What do I miss?
>
> Cheers,
>
David Demelier <markand@malikania.fr>
Details
Message ID
<2ae44e9abf5d6de3f62dcdea36414a34c1304e13.camel@malikania.fr>
In-Reply-To
<5b270ad5-731c-83a0-254b-b375c1b0fdc1@web.de> (view parent)
DKIM signature
missing
Download raw message
On Fri, 2020-01-24 at 11:44 +0100, Hilix wrote:
> Hello David,
> 
>  From the command line, you have to use setfont with the full path to
> the font:
> # setfont /usr/share/consolefonts/ter-212n.psf.gz

Thanks for your answer, so I guess the busybox's setfont require
explicit full path rather than one provided by util-linux (IIRC).

> # rc-update add consolefont

I've added it to boot.

Regards

-- 
David
Reply to thread Export thread (mbox)