{"success":true,"data":{"ext":"tte","name":"TTE","description":"TTE is a TrueType-based font file format associated with Apple and Microsoft, and it is maintained through the broader TrueType specification supported by operating-system and font-rendering vendors. It is used to store scalable typefaces for text display, document formatting, and embedded fonts in software, firmware, and device interfaces. The format is generally safe to open, though, like other font files, it can be abused if a parser contains vulnerabilities; some TTE files are legacy resources from older systems.","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":["accdb","dfont","mdb","mny","ttc","ttf"],"usage":{"python":"def is_tte(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TTE 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 isTTE(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x01, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsTTE(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"}}