{"success":true,"data":{"ext":"ttc","name":"TTC","description":"TrueType Collection (TTC) is a font container format developed by Apple and Microsoft that combines multiple TrueType font faces into a single file. It is used in operating systems, desktop publishing software, and other applications that need to share glyph data across related typefaces. TTC files are generally safe, but as with other font formats, malformed files can exploit parsing bugs in older or unpatched software.","mime":["application/x-font-ttf"],"risk_level":"Safe","signatures":[{"hex":"00 01 00 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"}]}],"related":["ttf","dfont","afm","eot","otf","pfa"],"usage":{"python":"def is_ttc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TTC by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x01, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isTTC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x01, 0x00, 0x00]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsTTC(data []byte) bool {\n    signature := []byte{0x00, 0x01, 0x00, 0x00}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Fonts"}}