LinuxCommandLibrary

fonttosfnt

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.

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

Copied to clipboard