{"success":true,"data":{"ext":"fon","name":"Font file","description":"The FON file format is a Windows font resource format developed and maintained by Microsoft for early versions of Windows. It is used to store bitmap fonts and font resources for system interfaces, legacy applications, and display rendering in older Windows environments. FON files are a legacy format and are structurally based on executable containers, so they should be handled cautiously when obtained from untrusted sources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 5A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["otf","ttf","woff","woff2","afm","dfont"],"usage":{"python":"def is_fon(file_path: str) -> bool:\n    \"\"\"Check if file is a valid FON by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x5A])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isFON(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x5A]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsFON(data []byte) bool {\n    signature := []byte{0x4D, 0x5A}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"},"category":"Fonts"}}