{"success":true,"data":{"ext":"dfont","name":"DFONT","description":"DFONT is a font container format developed by Apple for macOS, used to store TrueType and related font data in a resource-based structure. It has been used for system fonts, desktop publishing, and legacy Mac application compatibility. DFONT is largely a legacy format, but it remains generally safe to open; however, like other font files, malformed examples can exploit parser vulnerabilities in vulnerable software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"00 01 00 00 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["ttc","ttf","afm","eot","fon","otf"],"usage":{"python":"def is_dfont(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DFONT by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x01, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isDFONT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x01, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsDFONT(data []byte) bool {\n    signature := []byte{0x00, 0x01, 0x00, 0x00, 0x00}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"},"category":"Fonts"}}