logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

Description

       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.

Document Source

       This manual page was generated by the Netpbm tool 'makeman' from HTML source.  The  master  documentation
       is at

              http://netpbm.sourceforge.net/doc/pbmtopk.html

netpbm documentation                             06 August 1990                           PbmtopkUserManual(1)

Name

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

Options

       In  addition  to  the options common to all programs based on libnetpbm (most notably -quiet, see  Common
       Options ), pbmtopk recognizes the following command line options:

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

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

       -Ccodingscheme
              Sets the coding scheme comment in the TFM file.

       -Ffamily
              Sets the font family comment in the TFM file.

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

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

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

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

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

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

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

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

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

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

See Also

pktopbm(1), pbm(1)

Synopsis

pbmtopkpkfile[.pk]  tfmfile[.tfm]  resolution  [-sdesignsize] [-pnumparam...]  [-Ccodingscheme] [-Ffamily] [-foptfile] [-cnum] [-Wwidth] [-Hheight] [-Ddepth] [-Iital] [-hhoriz] [-vvert] [-xxoff]
       [-yyoff] [pbmfile ...]

See Also