From Fedora Project Wiki

How to convert Bitmap Font to OpenType Bitmap Font

In Fedora 31, pango is upgraded to 1.44 and switch to use harfbuzz.

In order to continue to use bitmap font with pango, please use the fonttosfnt tool to convert the font.

Take the Terminus font as example


1. Install fonttosfnt from the below Fedora copr


2. Convert the font with fonttosfnt

$ fonttosfnt -b -c -g 2 -m 2 -o terminusn.otb ../terminus-fonts/ter-*n.pcf.gz

$ fonttosfnt -b -c -g 2 -m 2 -o terminusb.otb ../terminus-fonts/ter-*b.pcf.gz

3. remove the terminus-fonts package and install the terminusn.otb and terminusb.otb fonts

4. re-login the desktop and use the "Terminus" font

Commands for the ucs-miscfixed-fonts font

$ fonttosfnt -b -c -g 2 -m 2 -o ucs-miscfixed.otb /usr/share/fonts/ucs-miscfixed/[1-9]*[0-9].bdf

$ fonttosfnt -b -c -g 2 -m 2 -o ucs-miscfixed-bold.otb /usr/share/fonts/ucs-miscfixed/*B.bdf

$ fonttosfnt -b -c -g 2 -m 2 -o ucs-miscfixed-oblique.otb /usr/share/fonts/ucs-miscfixed/*O.bdf

Commands for the terminus-fonts font

$fonttosfnt -b -c -g 2 -m 2 -o terminusn.otb /usr/share/fonts/terminus/ter-*n.pcf.gz

$fonttosfnt -b -c -g 2 -m 2 -o terminusb.otb /usr/share/fonts/terminus/ter-*b.pcf.gz

Commands for the bitmap-lucida-typewriter-fonts font

$ fonttosfnt -b -c -g 2 -m 2 -o lucidab.otb ../bitmap-lucida-typewriter-fonts/lutBS*.pcf.gz

$ fonttosfnt -b -c -g 2 -m 2 -o lucidar.otb ../bitmap-lucida-typewriter-fonts/lutRS*.pcf.gz