fonttosfnt1
Wrap a bitmap font in a sfnt (opentype) wrapper
Usage
fonttosfnt [options]
-o
file.otb
[--]
[font] ...
fonttosfnt {--help | --version}
Overview
Wrap a bitmap font or a set of bitmap fonts in a sfnt (TrueType or OpenType) wrapper. If no font is specified, a BDF font is read from standard input (stdin).
Options
-
-v -
Be verbose.
-
-c -
Do not crop glyphs. This usually increases file size, but may sometimes yield a modest decrease in file size for small character cell fonts (terminal fonts).
-
-b -
Write byte-aligned glyph data. By default, unaligned data is written, which yields a smaller file size.
-
-r -
Do not reencode fonts. By default, fonts are reencoded to Unicode whenever possible.
-gn-
Set the type of scalable glyphs that we write. If n is 0, no scalable glyphs are written; this is valid but confuses most current software. If n is 1, a single scalable glyph (the undefined glyph) is written; this is recommended, but triggers a bug in current versions of
FreeType. If n is 2 (the default), a sufficiently high number of blank glyphs are written, which works withFreeTypebut increases file size.
-mn-
Set the type of scalable metrics that we write. If n is 0, no scalable metrics are written, which may or may not be valid. If n is 1, full metrics for a single glyph are written, and only left sidebearing values are written for the other glyphs. If n is 2, scalable metrics for all glyphs are written, which increases file size and is not recommended. The default is 1.
-
-- -
End of options.
-
--help -
Prints a usage message and exits.
-
--version -
Prints version info and exits.
History
- Arch Linux 2026-11-01: the text shown here
- Debian 13 (Trixie)
- Debian 12 (Bookworm) to Debian 5.0 (Lenny)
--help since Arch Linux 2026-11-01;
--version since Arch Linux 2026-11-01.