bdftopcf

Convert BDF bitmap fonts to PCF format

TLDR

Convert BDF font to PCF
$ bdftopcf [font.bdf] > [font.pcf]
Convert with output file
$ bdftopcf -o [font.pcf] [font.bdf]
Create terminal font
$ bdftopcf -t [font.bdf] > [font.pcf]
Set MSB first bit order
$ bdftopcf -m [font.bdf] > [font.pcf]
Set glyph padding
$ bdftopcf -p4 [font.bdf] > [font.pcf]

SYNOPSIS

bdftopcf [options] fontfile.bdf

DESCRIPTION

bdftopcf is an X11 font compiler that converts fonts from Bitmap Distribution Format (BDF) to Portable Compiled Format (PCF). PCF fonts can be read by any architecture while allowing fast reading on the target machine.

PARAMETERS

-o outputfile

Write output to file instead of stdout
-t
Create terminal font with uniform glyph sizes for faster rendering
-i
Inhibit ink metrics computation
-pn
Set glyph padding to n bytes (1, 2, 4, or 8)
-un
Set scanline unit to n bytes (1, 2, or 4)
-m
Set font bit order to MSB first
-l
Set font bit order to LSB first
-M
Set font byte order to MSB first
-L
Set font byte order to LSB first

INSTALL

sudo apt install xfonts-utils
sudo dnf install bdftopcf
sudo apk add bdftopcf
sudo zypper install bdftopcf
brew install bdftopcf
nix profile install nixpkgs#bdftopcf

CAVEATS

Part of the X.Org font utilities. Output fonts are portable but read faster on matching architectures. Terminal fonts (-t) render faster but require uniform glyph sizing.

SEE ALSO

xfontsel(1), xlsfonts(1), fc-cache(1)