PKTOPBM(1)

✨ PKTOPBM β€” the manual, but make it cute ✨

okay bestie, so this is pktopbm, from the Pktopbm User Manual (section 1, General Commands Manual). it converts a packed (PK) font into PBM images and honestly? it ate. let's get into it πŸ’…


🌸 NAME 🌸

pktopbm β€” convert packed (PK) format font into PBM


πŸ¦‹ SYNOPSIS πŸ¦‹

pktopbm pkfile [ -x width ] [ -y height ] [-c num] pbmfile ...

πŸ’– DESCRIPTION πŸ’–

okay so first thing's first: this program is part of Netpbm(1). family reunion, iykyk 🫢

pktopbm reads a packed (PK) font file as input, and produces PBM images as output. no cap, that's literally the whole job.

if the filename - is used for any of the filenames, the standard input stream (or standard output where appropriate) will be used. classic - behavior, we love a flexible queen ✨

if either the width or height is specified, this value will be used for all bitmaps produced. also, if one or both values are specified, the bitmap will be relocated with the hoffset and voffset given in the pkfile. the basepoint will be placed in the lower left corner of the bitmap. and if the bitmap is bigger than the specified size? it will be truncated at the top or right. sorry babe, it's giving "cut off", not personal πŸ’€


πŸŽ€ OPTIONS πŸŽ€

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

  • -character num β€” this is the code point (character number) to which the first specified output file pertains. ergo, there is no output for any code point lower than this. like, nothing. zero. nada πŸ™ˆ
  • -x width β€” the width of the image in columns.

the default is what is specified in the font file.

  • -y width β€” the height of the image in rows.

the default is what is specified in the font file.


πŸ•°οΈ HISTORY πŸ•°οΈ

before Netpbm 11.04 (September 2023), the program would sometimes add the suffix '.pk' to the specified input file name. it also let you specify multiple -c options, with each applying to the output file names that came after it. throwback behavior, lowkey unhinged, but periodt 🫢


πŸ‘€ SEE ALSO πŸ‘€


πŸ‘‘ AUTHOR πŸ‘‘

Adapted from Tom Rokicki's pxtopk by Angus Duggan <ajcd@dcs.ed.ac.uk>. <bartel@informatik.tu-muenchen.de> in March 1995.

(iconic lineage ngl, shoutout to the ancestors of this codebase 🌈)


πŸ“œ 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/pktopbm.html

and that's the whole thing bestie!! mwah πŸ’– this was netpbm documentation, dated 15 September 2023, and it's the Pktopbm User Manual(1) β€” go forth and convert those fonts, you absolute main character πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from