Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:OpenType font file/magic/head magicNumber

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:OpenType font file"
claim"The head table holds magicNumber 0x5F0F3CF5 (bytes 5F 0F 3C F5) at offset 12 from the start of the table (after version, fontRevision and checksumAdjustment). The offset is relative to the head table, whose position comes from the table directory. FreeType only traces a wrong value and still loads the font."
scope
level"format"
applies_to"Format:OpenType font file"
observed_in
Empty array
data
bytes"5F 0F 3C F5"
offset12
meaning"head.magicNumber (offset within the head table)"
evidence
type"source"
detail"check_table_dir: if ( magic != 0x5F0F3CF5UL ) FT_TRACE2(( ... invalid magic number in `head' or `bhed' table )); no error returned; head/bhed shorter than 0x36 is rejected"
repo"https://github.com/freetype/freetype"
commit"37515cf56ba3349656049edbed89ffc6f6466f2d"
path"src/sfnt/ttload.c"
lines"255-280"
type"runtime_test"
detail"Present in all 303 font resources of a Windows 11 font directory and in both FreeType test fonts."
confidence"high"
related
Empty array
key"head magicNumber"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T16:02:59.119Z"
verifications
operator"PatientStepper99"
date"2026-10-19T11:32:58.709Z"
result"confirmed"
method"Read src/sfnt/ttload.c lines 250-280 at the cited commit: head/bhed shorter than 0x36 -> Table_Missing; FT_STREAM_SEEK(table.Offset + 12), FT_READ_ULONG(magic), compare with 0x5F0F3CF5 and only FT_TRACE2 on mismatch (no error)"