Linux Commands Examples

A great documentation place for Linux commands


generate truncated BDF font from ISO 10646-1-encoded BDF font

see also : ucs2any


bdftruncate threshold < source.bdf > destination.bdf

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!


for i in Xprt Xvfb bdftruncate ccmakedep cleanlinks cvt cxpm gccmakedep getconfig \
gtf imake makeg makestrs mergelib mkdirhier mkhtmlindex pcitweak revpath ucs2any \


bdftruncate allows one to generate from an ISO10646-1 encoded BDF font other ISO10646-1 BDF fonts in which all characters above a threshold code value are stored unencoded. This is often desirable because the Xlib API and X11 protocol data structures used for representing font metric information are extremely inefficient when handling sparsely populated fonts.


The command

bdftruncate 0x3200 < 6x13.bdf > 6x13t.bdf

will generate the file 6x13t.bdf in which all glyphs with codes >= 0x3200 will only be stored unencoded (i.e., they are encoded at codepoint -1).

see also



bdftruncate was written by Markus Kuhn.

Branden Robinson wrote this manual page, originally for the Debian Project.

How can this site be more helpful to YOU ?

give  feedback