PBMTOPK(1)

πŸ“¦
version 11.13.03 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Pbmtopk User Manual(1) πŸ’–

okay bestie, welcome to the manual page for pbmtopk, from the General Commands Manual section (section 1, the "you can literally just run this" section πŸ’…). Sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

pbmtopk β€” convert a PBM image into a packed (PK) format font πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

no cap, that's the whole vibe right there πŸ‘‘


🌸 DESCRIPTION 🌸

So. This program is part of Netpbm(1). Bestie, it's one of the family. 🫢

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. And if the filename - is used for any of the filenames, pbmtopk uses Standard Input or Standard Output. (Yes queen, the humble dash is doing the most. Iconic. ⭐)


πŸ’… 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:

  • -s designsize β€” Sets the design size of the font, in TeX's points (72.27pt to the inch, bestie, not the metric one, the OTHER one 😭). 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. (she comes with defaults already chosen, we love a prepared queen πŸ’–)
  • -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).

πŸ”₯ SEE ALSO πŸ”₯

pktopbm(1), pbm(1)


πŸ‘‘ AUTHOR πŸ‘‘

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


πŸ“– 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

and that's the whole thing, bestie πŸ’–βœ¨ this page is straight from netpbm documentation, dated 06 August 1990, and it lives under the title Pbmtopk User Manual(1) β€” periodt. πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from