{"success":true,"data":{"ext":"woff2","name":"Web Open Font Format 2","description":"Web Open Font Format 2 (WOFF2) is a web font file format developed by the W3C WebFonts Working Group for delivering compressed font data to browsers. It is used to embed custom typefaces in websites and web applications, supporting consistent text rendering across platforms and devices. WOFF2 is generally safe, though fonts from untrusted sources should be handled by updated software because parsing vulnerabilities have historically affected font engines.","mime":[],"risk_level":"Safe","signatures":[{"hex":"77 4F 46 32","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":["woff","fon","otf","ttf","afm","dfont"],"usage":{"python":"def is_woff2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WOFF2 by magic bytes.\"\"\"\n    signature = bytes([0x77, 0x4F, 0x46, 0x32])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isWOFF2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x77, 0x4F, 0x46, 0x32]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWOFF2(data []byte) bool {\n    signature := []byte{0x77, 0x4F, 0x46, 0x32}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Fonts"}}