Preface
Goal: Install Font Manually
I have been in a few years in my comfort zone with Arch Linux. Every font, can be installed directly using AUR. Now, that I move on to Slackware, I have to rethink about the way I install fonts. From provided by packages, into manual install.
This guidance applied for most distribution.
Table of Content
-
Preface: Table of Content
-
3: Bitmap Font
-
4: System Wide
-
5: Font to Use
1: Common Example
From Empty Folder
My new working path is,
of course ~/.local/share/fonts
,
instead of deprecated ~/.fonts
.
This time I arrange to a few subdirectory:
Downloading from git
For most fonts, I prefer to download using browser. But for system font, that I will be using in desktop, I prefer git clone to make sure the font downloaded right.
And copy-paste later on.
Copy and Paste
Copy paste manually.
The same method for other directory, as well.
Now you can check using fc-list
Note that by the time this article is being written,
FontAwesome is still having 4.x series version.
With 5.x series the font is in web-fonts-with-css/webfonts/
directory.
2: True Type Font
Installing TTF is easy, as example above.
Now you should see the font in some application:
Libreoffice
Inkscape
Lemonbar
XFCE4 Terminal
I have to logout, before I can show this in my zsh
.
3: Bitmap Font
Consider have a look at siji
as our example.
There are a few more step required for bitmap fonts.
-
mkfontdir
, andmkfontscale
-
xset fp+
Notation
As you might already notice. XLFD using exotic notation.
Copy and Paste
Copy paste manually.
Make Font
You need other tools,
it is mkfontdir
and mkfontscale
.
Display Font
Now you can check using xfd
Font Cache
Add Font Path
This step, you should do, or the font won’t shown up in Lemonbar.
Select Font
Using XLFD
Lemonbar
4: System Wide
Sometimes we need to use the font in system wide,
using /usr/share/fonts
.
Copy and Paste
You need to logout and relogin in order to use this bitmap font.
Font Tools
You can also browse a character in a font with either of these program,
-
xffd
, -
unibrow
, or -
gucharmap
.
5: Font to Use
I also ask some friends, in @dotfiles_id telegram group, about their favorites font. I would like to summarize here:
Fonts @ dotfiles_id
Icon Font/ Glyph Bar
Bar (Text)
-
Terminus
-
Roboto
Libreoffice
-
Carlito (Calibri substitution)
-
Caladea (Cambria substitution)
Design (Inkscape)
-
Oswald (Google Font)
-
Raleway (Google Font)
Web
- Default: arial, helvetica, sans
Terminal
Text Editor (Coding)
-
Hack, Ubuntu Mono, Fira Code
-
Monaco, Meslo
Links:
Conclusion
It works.
Thank you for reading and visiting.