You are not logged in.
Pages: 1
Hello. I'm installing Arch Linux for the first time on a VM to learn more about Linux. I've followed the installation guide and, after some struggle, managed to get my system up and running.
The next thing I'm trying to do is to install tools like Zellij and LunarVim. I've installed these tools successfully, but they require Nerd Fonts to display icons properly.
I've installed ttf-hack-nerd and fontconfig packages, but when I run setfont /usr/share/fonts/TTF/HackNerdFontMono-Regular.ttf, I get the following message:
setfont: ERROR setfont.c:550 kfont_load_font: Bad input file sizeSearching around, my understanding is that I need a Terminal Emulator such as, say, Alacritty to install Nerd Fonts, which requires something like Wayland or Xorg.
Could anybody confirm if my understanding is correct, please?
I don't plan on installing a graphical environment, or at least not for the time being.
Offline
setfont is for the linux console, you can just install the nerdfont (multiple of them are in the repos) like every other package and then configure it either as global monospace font or your TE of choice (eg. alacritty) to use them explicitly.
They'll however only work in a GUI environment, the linux console does not use the ttf/otf format.
Offline
Hi seth, thanks for the reply.
I see, so I can't escape from a GUI if I need to use NerdFonts. I'll try to install a gui environment and report later how it goes.
Offline
Offline
Could anybody confirm if my understanding is correct, please?
yes. setfont means its called on terminal.
setfont dont understand .ttf format. (truetype fonts)
you must give it an .psf format. (console/terminal fonts)
it also understant some other format too.
look at package content to find where it installs console fonts.
possibly /usr/share/kbd/consolefonts
there is font-terminus-nerd.
Offline
there is font-terminus-nerd
Where?
The repos only have https://archlinux.org/packages/extra/an … inus-nerd/
Offline
there is font-terminus-nerd
Where?
The repos only have https://archlinux.org/packages/extra/an … inus-nerd/
Indeed, the only place I found font-terminus-nerd was on Alpine Linux packages which, from my understanding, wouldn't work on arch.
Offline
Looking at it's contents, it's equivalent to the ttf-terminus-nerd package.
psf is limited to 256 characters - I'd be surprised to see a nerd font for the console (pleasantly surprised, but still surprised)
The mentioned kmscon (no idea how up-to-date the wiki is on that) however would support ttf's - if you want to avoid X11 or wayland at all.
Offline
psf is limited to 256 characters - I'd be surprised to see a nerd font for the console (pleasantly surprised, but still surprised)
Yeah, I've read about this limit here. I managed to get what I needed installing KDE Plasma, then Alacritty. It kinda feels like an overkill for enabling Nerd Fonts, though. I'll take a look at kmscon later.
Offline
You don't need KDE…
A minimal wayland compositor or just the xorg-server and some terminal emulator (foot, st, xterm) will do (as alternative to kmscon)
Offline
You don't need KDE…
A minimal wayland compositor or just the xorg-server and some terminal emulator (foot, st, xterm) will do (as alternative to kmscon)
Indeed, KDE was just easier because I don't know a lot about the elements that compose a graphical environment. I managed to make it work installing Hyprland but, while Hyprland is powerful, I found the setup quite complex for a beginner. I'll try installing something simpler and share the steps here once I get the chance.
And thank you very much for the help!
Offline
Pages: 1