{"success":true,"data":{"ext":"woff","name":"Web Open Font Format","description":"Web Open Font Format (WOFF) is a font container format developed by Mozilla, TypeSupply, Microsoft, and Opera, and standardized by the World Wide Web Consortium (W3C). It is used to deliver compressed web fonts for websites, enabling browsers to load typefaces efficiently in CSS-based layouts and web applications. WOFF is generally safe, though fonts from untrusted sources can still trigger parser vulnerabilities in font-rendering software; WOFF2 later superseded it as the newer web font format.","mime":[],"risk_level":"Safe","signatures":[{"hex":"77 4F 46 46","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":["woff2","fon","otf","ttf","afm","dfont"],"usage":{"python":"def is_woff(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WOFF by magic bytes.\"\"\"\n    signature = bytes([0x77, 0x4F, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isWOFF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x77, 0x4F, 0x46, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWOFF(data []byte) bool {\n    signature := []byte{0x77, 0x4F, 0x46, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Fonts"}}