Introduction
PSF, PC Screen Font, is the bitmap font format of the Linux text console, handled by
the tools of the kbd package such as
setfont. The
extension .psfu is sometimes used for a font that carries a Unicode
mapping table.
Structure
A file is a header, the glyph bitmaps and optionally a Unicode table. There are two
versions. PSF1 starts with the bytes 36 04, followed by a mode byte and
the character size; glyphs are 8 pixels wide and there are 256 or 512 of them. PSF2
starts with 72 B5 4A 86, followed by little-endian 32-bit fields for
version, header size, flags, glyph count, bytes per glyph, height and width. Each
pixel row is padded to whole bytes.
Not described
This page is a first outline. The Unicode table is not yet described here.
Known, not yet covered
- Reference: the mode and flag bits and the layout of the Unicode table in each version.
- Viewer: the site has no viewer for this format.
Links
Software
- setfont – loads console fonts, part of the kbd package (Linux)
Reference
- Font formats recognised by the Linux kbd package – the PSF1 and PSF2 layouts