{"success":true,"data":{"ext":"otf","name":"OpenType font file","description":"OpenType is a digital font format developed by Microsoft and Adobe and maintained as an open standard through the OpenType specification. It is used in operating systems, desktop publishing applications, web browsers, and design software to render scalable text with advanced typographic features and multilingual character support. OpenType fonts are generally safe, though malformed files can trigger parsing bugs in font renderers, so untrusted files should be opened carefully.","mime":["application/x-font-otf"],"risk_level":"Safe","signatures":[{"hex":"4F 54 54 4F 00","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"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4F 54 54 4F","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["ttf","afm","eot","pfa","pfb","pfm"],"usage":{"python":"def is_otf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OTF by magic bytes.\"\"\"\n    signature = bytes([0x4F, 0x54, 0x54, 0x4F, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isOTF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4F, 0x54, 0x54, 0x4F, 0x00]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsOTF(data []byte) bool {\n    signature := []byte{0x4F, 0x54, 0x54, 0x4F, 0x00}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"},"category":"Fonts"}}