Official NuTyX forums

Help => Tips and Tricks => Topic started by: aus9 on Sat Jul 30 08:33:06 2022

Title: [TRICK] add a non-repo font
Post by: aus9 on Sat Jul 30 08:33:06 2022
If cards search <font-name> reveals no hits then consider one way of adding fonts.

I will use mononoki as an example. no hits for that name.
Download it with the full wget not the busybox one please & unzip

Alternatively click the link with your web browser!
I give it a new folder under /usr/share/fonts
and last command is to update cache for fonts
Code: [Select]
sudo cards install wget unzip
cd Downloads
/usr/bin/wget --no-check-certificate https://github.com/madmalik/mononoki/releases/download/1.3/mononoki.zip
unzip mono*zip
[ -d /usr/share/fonts/mononoki ] || sudo mkdir -p  /usr/share/fonts/mononoki
sudo cp webfont/*ttf /usr/share/fonts/mononoki/
sudo fc-cache -f -v /usr/share/fonts

output SNIP ends with fc-cache: succeeded

Now in my fav lxterminal go to edit preferences and mono* fonts should now be selectable

There are other fonts that also offer diff between zero and O for Orange

the zero is a O with a  slash through it
clickable image if interested
https://imgur.com/65JQNcb

its great for terminals but not great for text editors or web browsers

I forgot to mention
https://github.com/madmalik/mononoki/blob/master/LICENSE
Quote
Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license

so it can be packaged at a later date.