Linux Commands Examples

A great documentation place for Linux commands


Wrap a bitmap font in a sfnt (TrueType) wrapper

see also : X


fonttosfnt [ options ] -o file.ttf [ -- ] font...

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


Wrap a bitmap font or a set of bitmap fonts in a sfnt (TrueType or OpenType) wrapper.



Be verbose.


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).


Write byte-aligned glyph data. By default, unaligned data is written, which yields a smaller file size.


Do not reencode fonts. By default, fonts are reencoded to Unicode whenever possible.

-g n

Set the type of scalable glyphs that we write. If n is 0, no scalable glyphs are written; this is legal 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 with FreeType but increases file size.

-m n

Set the type of scalable metrics that we write. If n is 0, no scalable metrics are written, which may or may not be legal. 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.


Some of the font-level values, notably sub- and superscript positions, are dummy values.

see also

X , Xserver, Xft(3x). Fonts in X11.


The version of Fonttosfnt included in this X.Org Foundation release was originally written by Juliusz Chroboczek <jch[:at:]freedesktop[:dot:]org> for the XFree86 project.

How can this site be more helpful to YOU ?

give  feedback