Pbmtopk User Manual

Pbmtopk User Manual



pbmtopk - convert a PBM image into a packed (PK) format font


pbmtopk pkfile[.pk] tfmfile[.tfm] resolution [-s designsize] [-p num param...] [-C codingscheme] [-F family] [-f optfile] [-c num] [-W width] [-H height] [-D depth] [-I ital] [-h horiz] [-v vert] [-x xoff] [-y yoff] [pbmfile ...]


This program is part of Netpbm(1)

pbmtopk reads PBM images as input and produces a packed (PK) font file and a TFM (TeX font metric) file as output. The resolution parameter indicates the resolution of the font, in dots per inch. If the filename ’-’ is used for any of the filenames, pbmtopk uses Standard Input or Standard Output.


-s designsize

Sets the design size of the font, in TeX’s points (72.27pt to the inch). The default design size is 1. The TFM parameters are given as multiples of the design size.

-p num param...

Sets the first num font parameters for the font. The first seven parameters are the slant, interword spacing, interword space stretchability, interword space shrinkability, x-height, quad width, and post-sentence extra space of the font. Math and symbol fonts may have more parameters; see The TeXbook for a list of these. Reasonable default values are chosen for parameters which are not specified.

-C codingscheme

Sets the coding scheme comment in the TFM file.

-F family

Sets the font family comment in the TFM file.

-f optfile

Reads the file optfile, which should contain a lines of the form:

filename xoff yoff horiz vert width height depth ital

The PBM files specified by the filename parameters are inserted consecutively in the font with the specified attributes. If any of the attributes are omitted, or replaced with ’*’, a default value will be calculated from the size of the bitmap. The settings of the -W, -H, -D, -I, -h, -v, -x, and -y options do not affected characters created in this way. The character number can be changed by including a line starting with ’=’, followed by the new number. Lines beginning with ’%’ or ’#’ are ignored.

-c num

Sets the character number of the next bitmap encountered to num.

-W width

Sets the TFM width of the next character to width (in design size multiples).

-H height

Sets the TFM height of the next character to height (in design size multiples).

-D depth

Sets the TFM depth of the next character to depth (in design size multiples).

-I ital

Sets the italic correction of the next character to ital (in design size multiples).

-h horiz

Sets the horizontal escapement of the next character to horiz (in pixels).

-v vert

Sets the vertical escapement of the next character to vert (in pixels).

-x xoff

Sets the horizontal offset of the next character to xoff (in pixels).

-y yoff

Sets the vertical offset of the next character to yoff (in pixels, from the top row).


pktopbm(1) , pbm(5)


Adapted from Tom Rokicki’s pxtopk by Angus Duggan <ajcd@dcs.ed.ac.uk>.


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.

Free Software

Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.

Free Books

The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.