LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

fonttosfnt

bitmap font to SFNT converter

TLDR

Convert BDF to sfnt
$ fonttosfnt -o [output.ttf] [input.bdf]
copy
Convert PCF font
$ fonttosfnt -o [output.otb] [input.pcf]
copy
Verbose output
$ fonttosfnt -v -o [output.ttf] [input.bdf]
copy
Process multiple fonts
$ fonttosfnt -o [output.ttf] [font1.bdf] [font2.bdf]
copy

SYNOPSIS

fonttosfnt [options] input-files...

DESCRIPTION

fonttosfnt converts bitmap fonts (BDF, PCF) to SFNT format (TrueType/OpenType with bitmap data). It preserves bitmap glyphs while providing modern font file format.The tool embeds bitmap strikes in SFNT wrappers, enabling use of legacy bitmap fonts in systems expecting modern font formats. Multiple input fonts can be merged.fonttosfnt bridges classic X11 bitmap fonts with contemporary font infrastructure.

PARAMETERS

INPUT-FILES

BDF or PCF font files.
-o FILE
Output file name.
-v
Verbose output.
-g N
Gamma correction value.
-m
Merge glyphs into single font.
--help
Display help information.

INSTALL

sudo apt install xfonts-utils
copy
sudo dnf install fonttosfnt
copy
sudo zypper install fonttosfnt
copy
nix profile install nixpkgs#fonttosfnt
copy

CAVEATS

Output remains bitmap, not vector. Limited font metadata support. Best for specific sizes.

HISTORY

fonttosfnt is part of the X.Org font utilities, providing conversion between traditional X11 bitmap formats and modern SFNT containers for compatibility with newer systems.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid