From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:WOFF2" |
|---|
| claim | "The transformed glyf table starts with a 36-byte header: u16 version, u16 option flags (bit 0 = an overlap-simple bitmap of (numGlyphs+7)/8 bytes follows the substreams), u16 numGlyphs, u16 indexFormat (the loca format; loca origLength must equal (numGlyphs+1) times 2 or 4), then seven u32 substream sizes in the order contours count, points count, flags, glyph data, composite data, bbox, instructions; the substreams follow back to back." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "WOFF2 transform version 0 of glyf/loca" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "WOFF2TransformedGlyfHeader" |
|---|
| size | 36 |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "version" |
|---|
|
| offset | "0x2" |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "optionFlags" |
|---|
| bits | | bit | "0" |
|---|
| name | "overlapSimpleBitmap" |
|---|
|
|
|---|
|
| offset | "0x4" |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "numGlyphs" |
|---|
|
| offset | "0x6" |
|---|
| size | 2 |
|---|
| type | "uint16" |
|---|
| name | "indexFormat" |
|---|
|
| offset | "0x8" |
|---|
| size | 28 |
|---|
| type | "uint32_be[7]" |
|---|
| name | "substreamSizes" |
|---|
| notes | "nContour, nPoints, flag, glyph, composite, bbox, instruction" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ReconstructGlyf: kNumSubStreams = 7, header reads, expected loca length, substream split, overlap bitmap length" |
|---|
| repo | "https://github.com/google/woff2" |
|---|
| commit | "fb9c3379f2605b10f3e8f1d9636664ab5576775c" |
|---|
| path | "src/woff2_dec.cc" |
|---|
| lines | "405-470" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Transformed glyf table header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:43:14.548Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:07:24.768Z" |
|---|
| summary | "Add data.endianness big: ReconstructGlyf reads the header with Buffer::ReadU16/ReadU32, which apply ntohs/ntohl (buffer.h 93-129). Layout (version, flags, numGlyphs, indexFormat, 7 u32 substream…" |
|---|
| changed | |
|---|
|
|
|---|