Let's assume we're converting helvBO24.pcf
, a version of Helvetica Bold Oblique for 24px that comes with X11.
The output file will be helvBO24_fixed.ttf
.
Convert the thing to bdf through pcf2bdf
pcf2bdf helvBO24.pcf > helvBO24.bdf
Run the bdf through BitsNPicas to convert it to a basic TTF with nonsensical metadata
java -jar BitsNPicas.jar convertbitmap -f ttf -o helvBO24.ttf helvBO24.bdf
Run the generated TTF through a Python script with FontForge installed to correct the metadata
python fix-ttf.py helvBO24.ttf Helvetica bold -i 24
Install the font file
cp helvBO24_fixed.ttf ~/.local/share/fonts