{"success":true,"data":{"ext":"pfa","name":"PFA","description":"Adobe PostScript Font ASCII (PFA) is an ASCII-encoded Type 1 font format developed by Adobe Systems and maintained as a legacy part of the PostScript ecosystem. It is used to store scalable outline fonts for desktop publishing, printing workflows, and older operating systems or applications that support Type 1 fonts. PFA is generally safe to open, though Type 1 fonts are largely obsolete and may not be supported by modern software.","mime":["application/x-font-type1"],"risk_level":"Safe","signatures":[{"hex":"25 21 50 53 2D 41 64 6F 62 65 46 6F 6E 74 2D 31","offset":0,"sources":[{"name":"Adobe Type 1 Font Format Spec","url":"https://adobe-type-tools.github.io/font-tech-notes/pdfs/T1_SPEC.pdf"}]},{"hex":"80 01 FF FF 00 00 25 21 50 53 2D 41 64 6F 62 65 46 6F 6E 74","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"25 21 50 53 2D 41 64 6F 62 65 46 6F 6E 74 2D 31 2E 30","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["pfb","afm","eot","otf","pfm","ttc"],"usage":{"python":"def is_pfa(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PFA by magic bytes.\"\"\"\n    signature = bytes([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x46, 0x6F, 0x6E, 0x74, 0x2D, 0x31])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isPFA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x46, 0x6F, 0x6E, 0x74, 0x2D, 0x31]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsPFA(data []byte) bool {\n    signature := []byte{0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x46, 0x6F, 0x6E, 0x74, 0x2D, 0x31}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"},"category":"Fonts"}}