.PK

PK File

TeX Packed Bitmap Font
Ask a question
QUICK ANSWER

A PK file is a packed bitmap font created by the TeX typesetting system, not an audio file. It stores rasterized character glyphs for one font at one specific resolution (DPI). You will find PK files in your TeX Live or MiKTeX font cache - they are generated automatically and you do not need to open them manually.

Developer: Tomas Rokicki (PK format, 1985); Donald Knuth (TeX/Metafont ecosystem) Category: Font Files Open standard MIME: application/x-tex-pk
OPENS ON Windows macOS Linux
Related: .WOFF · .TTF · .EOT · .MCF

On this page

19k+ extensions indexed
Last reviewed Sep 5, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PK file format?

A .pk file is a compressed bitmap font used in the TeX and LaTeX typesetting ecosystem. PK stands for "Packed," referring to the run-length encoding scheme used to store each glyph's monochrome bitmap efficiently. The format was designed by Tomas Rokicki in 1985 as a more compact replacement for Metafont's .GF (Generic Font) output.

.pk files are resolution-specific: a separate file exists for each combination of typeface and output DPI. For example, cmr10.300pk holds the Computer Modern Roman 10pt font rasterized at 300 dpi, while cmr10.600pk is the same face at 600 dpi. Modern TeX distributions such as TeX Live and MiKTeX generate .pk files on demand via mktexpk when DVI rendering requires a font not already cached.

The file begins with a two-byte preamble (0xF7 0x59) followed by design-size and DPI metadata, then a sequence of packed glyph records. Each record stores the character code, TFM width, bounding box dimensions, and RLE-compressed bitmap bits. A checksum field ties each glyph to its companion .tfm metric file.

For modern PDF-based LaTeX workflows, OpenType and Type 1 fonts are preferred. .pk files remain relevant for DVI-to-PostScript rendering pipelines in TeX Live and MiKTeX.

Security & safety

RISK: LOW

Binary font data; no scripting or executable content. Safe to open with TeX tools.

Format details

in a nutshell
FULL NAMETeX Packed Bitmap Fontaka PK font, packed raster font
DEVELOPERTomas Rokicki (PK format, 1985); Donald Knuth (TeX/Metafont ecosystem)since 1985 (Tomas Rokicki, gftopk utility)
CATEGORYFont Files
MIME TYPEapplication/x-tex-pk
TYPEcompressed bitmap font (rasterized glyphs)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
F759
ASCII
·Y
First byte 0xF7 (247) is the PK pre-amble identifier; second byte 0x59 (89 decimal) confirms PK format. GF files use 0xF7 0x80 - differentiated by second byte.

Programs that open PK files

Windows2 apps
MiKTeX Open-source PK files are managed automatically by MiKTeX's font subsystem; not opened directly. Install MiKTeX to process LaTeX documents that generate/use PK fonts.
TeX Live (with YAP DVI viewer) Open-source YAP (Yet Another Previewer) bundled with MiKTeX renders DVI files using PK fonts.
macOS1 app
MacTeX Open-source MacTeX (TeX Live for macOS) manages PK font cache automatically.
Linux2 apps
TeX Live Open-source TeX Live manages PK files automatically via mktexpk. Install texlive-full or relevant font packages.
Evince / Okular (DVI mode) Open-source These document viewers render DVI files using PK fonts via the TeX Live backend.

Technical details

deep spec
Magic bytes0xF7 0x59 (preamble identifier; distinguishes PK from GF which uses 0xF7 0x80)
EncodingBinary
Byte orderBig-endian
CompressionRun-length encoding (RLE) of monochrome glyph bitmaps; bounding-box optimization
Color depth1 bpp (monochrome only)
Typical file size10 KB - 500 KB per font at one resolution
Resolution encodingDPI encoded in filename convention (e.g., cmr10.300pk = 300 dpi, cmr10.600pk = 600 dpi)
ChecksumPer-glyph checksum field matching the companion .tfm metric file
MIME typeapplication/x-tex-pk
Associated OSLinux, macOS, Windows, Unix
Generated byMetafont via gftopk utility, or on-demand by mktexpk in TeX Live / MiKTeX
Format originTomas Rokicki, 1985
DVI workflow roleUsed in DVI-to-PostScript rendering; PDF-based TeX workflows prefer OpenType/Type 1 fonts
Released1985 (Tomas Rokicki, gftopk utility)
Latest versionformat is stable since 1985; no version changes
Open standardYes · royalty-free
Specificationctan.org

PK conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PK files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PK files.

Frequently asked questions

What is a PK file in LaTeX?
A PK file is a packed bitmap font used by the TeX typesetting system to render characters at a specific resolution. TeX Live and MiKTeX generate and manage them automatically.
Can I open a PK file in a text editor or audio program?
No - PK is a binary font file, not audio or text. It requires TeX distribution tools.
Why do I have PK files on my computer?
They were generated by your TeX distribution (TeX Live / MiKTeX) when compiling a LaTeX document that needed bitmap fonts. They live in the font cache directory.
Are PK font files still needed?
For modern pdflatex/LuaLaTeX workflows they are largely bypassed; still needed for DVI → PostScript workflows and some DVI previewers.
What does PK stand for?
Packed (raster) font - referring to the RLE compression of the bitmap glyph data.

References

1Archiveteam - PK font formatfileformats.archiveteam.org
2TeX FAQ - What are PK files?texfaq.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.PARTPartial Download File
5.DATProgram Data File (generic)
6.RPMSGRestricted Permission Message
7.EXEWindows Executable (Portable Executable)
8.DBSQLite Database File
9.MDMarkdown Document
10.BINCD/DVD Disc Image (BIN/CUE)

Related extensions

.WOFFWeb Open Font Format
.TTFTrueType Font
.EOTEmbedded OpenType Font
.MCFMathcad Font / Resource File
.CHRBorland BGI Stroke Font File
.OTFOpenType Font

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z