PKTYPE(1)
β¨ PKTYPE(1) β¨
okay bestie, so this is pktype from the General Commands Manual section, and it's giving font detective energy ππ
πΈ NAME πΈ
pktype β verify and translate a packed font bitmap file to plain text
π SYNOPSIS π
pktype pk_file[pk]
π DESCRIPTION π
ngl, this manual page is not meant to be exhaustive. The complete documentation for this version of TeX lives in the info file or the manual Web2C: A TeX implementation, so go look there if you want the whole lore πβ¨
So here's the tea: the pktype program translates a packed font file (pk) β the kind that's output by, for example, gftopk(1) β into a file that humans can actually read. Iconic behaviour, honestly π«Ά
It also pulls double duty as a pk file-validating program β like, if pktype can read it, it's correct, periodt β and as an example of a pk-reading program for other software that wants to read pk files. Main character energy for real π
The input pk_file on the command line may omit the suffix pk. And the plain text translation is always written to standard output β no cap, no surprise files appearing in your directory π
The output file gives a compact encoding of the packed encoding, using conventions described in the source code (iykyk). Here's the vibe:
- run lengths of black pixels alternate with parenthesized run lengths of white pixels
- brackets are used to indicate when a row should be repeated
π ENVIRONMENT π
pktype looks for pk_file in the usual places according to Kpathsea.
See tex(1) for the details of the searching πβ¨
π SEE ALSO π
dvitype(1)gftopk(1)gftype(1)- Donald E. Knuth et al., Metafontware.
π AUTHORS π
- Tomas Rokicki wrote the program
- Donald E. Knuth originally ported it to Unix
- Pierre MacKay originally adapted it for compilation with Web2c
okay that's the whole thing bestie, slay π β¨ this was Web2C 2025, dated 16 June 2015 β mwah, obsessed, bye ππ¦π
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: texlive-mfware 12:svn77830-105.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: texlive-mfware 12:svn77830-111.fc44 Β· LicenseRef-Fedora-Public-Domain
- opensuse-leap 16.0: texlive-mfware-doc 2025.221.svn73848-160000.3.1 Β· SUSE-Public-Domain
- ubuntu resolute: texlive-binaries 2025.20250727.75242+ds-5build1 Β· TeX-Live
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms