PK2BM(1)
π PK2BM(1) π
β¨ NAME β¨
okay so the whole point of pk2bm is to create a bitmap from a TeX pkfont π§ literally that's it, that's the job π
π SYNOPSIS π
pk2bm [-bh] [-Wwidth] [-Hheight] -cchar pkfont
pk2bm [-bh] [-Wwidth] [-Hheight] -ooctchar pkfont
π¦ DESCRIPTION π¦
okay bestie, listen π this program makes a bitmap (an ASCII file!) that you can use to build X11 applications β¨ the bitmap file holds every pixel of one specific character, picked either with -c or -o, from the pkfont you give it. the file format is described in bitmap(X11), so go check that if you wanna get nerdy π€
quick lore π the pkfont is a packed fontfile that gftopk(TeX) makes from a gffont. and a gffont is the output of METAFONT, which is a program for designing fonts in a device independent way. it's giving font-design pipeline ππ«Ά
now the flags, iykyk π
-bmakes a bitmap where black pixels show up as a*and white ones show up as a.π€π€-hgives you a hexadecimal bitmap dump instead π₯
and then the size stuff π -W and/or -H let you make a bitmap of a certain width and/or height in pixels πΈ when you do that, the pk-bitmap gets centered inside those new dimensions. so cute, no cap π₯Ή
the output goes to the standard output, so you can pipe it wherever your heart desires π
π SEE ALSO π
METAFONT, Donald Knuth. the OG πThe PKtype processor, which belongs to the METAFONTware family π§- bitmap(X11) π¦
- gftopk(TeX) π
- pktype(TeX) β
- ps2pk(1) π
π AUTHOR π
Piet Tutelaers is the legend behind this one β¨ it's maintained in TeX Live, so if you find a bug or wanna send any other correspondence, email tex-k@tug.org (https://lists.tug.org/tex-k) π«Ά
bestie, that's the whole thing π PK2BM(1) from the General Commands Manual, dated 30 August 2022, all wrapped up ππ slay forever π β¨
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian trixie: texlive-binaries 2024.20240313.70630+ds-6 Β· TeX-Live
- fedora 43: texlive-ps2pk 11:svn66186-93.fc43 Β· MIT
- fedora 43: texlive-ps2pk 11:svn66186-95.fc43.1 Β· MIT
- fedora 44: texlive-ps2pk 12:svn75712-105.fc44 Β· MIT
- fedora 44: texlive-ps2pk 12:svn75712-111.fc44 Β· MIT
- opensuse-leap 16.0: texlive-ps2pk 2025.221.svn66186-160000.3.1 Β· LPPL-1.0
- ubuntu noble: texlive-binaries 2023.20230311.66589-9build3 Β· TeX-Live
- ubuntu questing: texlive-binaries 2024.20240313.70630+ds-6ubuntu2 Β· TeX-Live
- ubuntu resolute: texlive-binaries 2025.20250727.75242+ds-5build1 Β· TeX-Live
- ubuntu stonking: texlive-binaries 2026.20260303.78225+ds-5ubuntu1 Β· TeX-Live
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms