Linux Commands Examples

A great documentation place for Linux commands


create a bitmap from a TeX pkfont

see also : bitmap - gftopk - pktype - ps2pk

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 !


This program generates a bitmap (ASCII file) which can be used to create X11 applications. The bitmap file consists of all pixels of the specified character (via the -c or -o option) from the given pkfont. The format is described in bitmap(X11).

The pkfont is a packed fontfile generated by gftopk(TeX) from a gffont. A gffont is the output of METAFONT a program to design fonts in a device independant way.

With the -b flag a bitmap is generated in which all black pixels are drawn as a ’*’ and all white bits as a ’.’. With the -h flag a hexadecimal bitmap dump is generated.

The -W and/or -H options can be used to create a bitmap of respectivally ’width’ and ’height’ pixels. The pk-bitmap will in this case be centered according to these new dimensions.

The output is written to the standard output.


pk2bm [-bh] [-Wwidth] [-Hheight] -cchar pkfont

pk2bm [-bh] [-Wwidth] [-Hheight] -ooctchar pkfont

see also

’METAFONT’, Donald Knuth.
’The PKtype processor’, belonging to the METAFONTware.
bitmap (X11),
gftopk (TeX),
pktype (TeX),


Piet Tutelaers <rcpt[:at:]urc.tue[:dot:]nl>

How can this site be more helpful to YOU ?

give  feedback