PFM

application/x-font-printer-metric

Safe

Magic Bytes

Offset: 0
00 01 FF FF 00 00 43 6F 70 79 72

Printer Font Metrics (PFM) is a proprietary file format developed by Adobe Systems to provide character metric data for Type 1 PostScript fonts on Windows platforms. This format is primarily used by graphics software and printer drivers to determine character spacing, kerning, and line heights when rendering or printing professional typography. Now considered a legacy format, PFM files are largely replaced by OpenType and TrueType formats but remain technically safe as they contain static metadata without executable code.

Extension

.pfm

MIME Type

application/x-font-printer-metric

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .pfm files in Python

Python
def is_pfm(file_path: str) -> bool:
    """Check if file is a valid PFM by magic bytes."""
    signature = bytes([0x00, 0x01, 0xFF, 0xFF, 0x00, 0x00, 0x43, 0x6F, 0x70, 0x79, 0x72])
    with open(file_path, "rb") as f:
        return f.read(11) == signature

How to validate .pfm files in Node.js

Node.js
function isPFM(buffer: Buffer): boolean {
  const signature = Buffer.from([0x00, 0x01, 0xFF, 0xFF, 0x00, 0x00, 0x43, 0x6F, 0x70, 0x79, 0x72]);
  return buffer.subarray(0, 11).equals(signature);
}
Go
func IsPFM(data []byte) bool {
    signature := []byte{0x00, 0x01, 0xFF, 0xFF, 0x00, 0x00, 0x43, 0x6F, 0x70, 0x79, 0x72}
    if len(data) < 11 {
        return false
    }
    return bytes.Equal(data[:11], signature)
}

API Endpoint

GET /api/v1/pfm
curl https://filesignature.org/api/v1/pfm

Related Formats