From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:FreeType" |
|---|
| claim | "Layout of FT_GlyphSlotRec (face->glyph) in Windows x64 builds, unchanged from 2.6.2 to 2.15.0 (glyph_index was named reserved before 2.10). Rendering code reads slot->bitmap at +0x68 (rows +0x68, width +0x6C, pitch +0x70, buffer +0x78), bitmap_left +0x90, bitmap_top +0x94, advance.x +0x58, format +0x60. LP64 (computed, unverified): advance 0x80, format 0x90, bitmap 0x98, bitmap_left 0xC0, bitmap_top 0xC4, total 0x130. 32-bit (computed): advance 0x40, format 0x48, bitmap 0x4C, bitmap_left 0x64, total 0xA0." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:FreeType" |
|---|
| observed_in | | "freetype.dll 2.6.2 (Win64)" |
|
|---|
|
|---|
| data | | name | "FT_GlyphSlotRec" |
|---|
| size | 248 |
|---|
| alignment | 8 |
|---|
| fields | | offset | 0 |
|---|
| size | 8 |
|---|
| type | "void*" |
|---|
| name | "library" |
|---|
| notes | "FT_Library" |
|---|
|
| offset | 8 |
|---|
| size | 8 |
|---|
| type | "FT_FaceRec*" |
|---|
| name | "face" |
|---|
| notes | "FT_Face" |
|---|
|
| offset | 16 |
|---|
| size | 8 |
|---|
| type | "FT_GlyphSlotRec*" |
|---|
| name | "next" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "glyph_index" |
|---|
| notes | "FT_UInt (named reserved before 2.10)" |
|---|
|
| offset | 32 |
|---|
| size | 16 |
|---|
| type | "FT_Generic" |
|---|
| name | "generic" |
|---|
|
| offset | 48 |
|---|
| size | 32 |
|---|
| type | "FT_Glyph_Metrics" |
|---|
| name | "metrics" |
|---|
| notes | "8 x FT_Pos (int32 on Win64): width, height, horiBearingX, horiBearingY, horiAdvance, vertBearingX, vertBearingY, vertAdvance (26.6)" |
|---|
|
| offset | 80 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "linearHoriAdvance" |
|---|
| notes | "FT_Fixed 16.16" |
|---|
|
| offset | 84 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "linearVertAdvance" |
|---|
| notes | "FT_Fixed 16.16" |
|---|
|
| offset | 88 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "advance_x" |
|---|
| notes | "FT_Vector advance.x (26.6)" |
|---|
|
| offset | 92 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "advance_y" |
|---|
| notes | "FT_Vector advance.y" |
|---|
|
| offset | 96 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "format" |
|---|
| notes | "FT_Glyph_Format: 'bits' 0x62697473, 'outl' 0x6F75746C, 'comp', 'plot', 'SVG '" |
|---|
|
| offset | 104 |
|---|
| size | 40 |
|---|
| type | "FT_Bitmap" |
|---|
| name | "bitmap" |
|---|
|
| offset | 144 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "bitmap_left" |
|---|
| notes | "FT_Int" |
|---|
|
| offset | 148 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "bitmap_top" |
|---|
| notes | "FT_Int" |
|---|
|
| offset | 152 |
|---|
| size | 40 |
|---|
| type | "FT_Outline" |
|---|
| name | "outline" |
|---|
| notes | "uint16 n_contours, uint16 n_points, points*, tags*, contours*, int flags" |
|---|
|
| offset | 192 |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "num_subglyphs" |
|---|
| notes | "FT_UInt" |
|---|
|
| offset | 200 |
|---|
| size | 8 |
|---|
| type | "void*" |
|---|
| name | "subglyphs" |
|---|
| notes | "FT_SubGlyph" |
|---|
|
| offset | 208 |
|---|
| size | 8 |
|---|
| type | "void*" |
|---|
| name | "control_data" |
|---|
|
| offset | 216 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "control_len" |
|---|
| notes | "C long (4 bytes on Win64)" |
|---|
|
| offset | 220 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "lsb_delta" |
|---|
| notes | "FT_Pos" |
|---|
|
| offset | 224 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "rsb_delta" |
|---|
| notes | "FT_Pos" |
|---|
|
| offset | 232 |
|---|
| size | 8 |
|---|
| type | "void*" |
|---|
| name | "other" |
|---|
|
| offset | 240 |
|---|
| size | 8 |
|---|
| type | "void*" |
|---|
| name | "internal" |
|---|
| notes | "FT_Slot_Internal" |
|---|
|
|
|---|
| endianness | "native" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "typedef struct FT_GlyphSlotRec_ { FT_Library library; FT_Face face; FT_GlyphSlot next; FT_UInt glyph_index; FT_Generic generic; FT_Glyph_Metrics metrics; ... FT_Slot_Internal internal; }" |
|---|
| repo | "https://github.com/freetype/freetype" |
|---|
| commit | "37515cf56ba3349656049edbed89ffc6f6466f2d" |
|---|
| path | "include/freetype/freetype.h" |
|---|
| lines | "2264-2298" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "freetype.dll 2.6.2 x64: FT_Render_Glyph does mov rax,[rcx+8] (slot->face) and mov r8d,[rcx+60h] then compares with 'bits' (slot->format); FT_Load_Glyph loads [rbx+0F0h] (slot->internal). Offsets computed with the C alignment rules for LLP64." |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "FT_GlyphSlotRec Win64" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T15:56:46.055Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T16:05:52.090Z" |
|---|
| summary | "Field types as stdint/pointer types (FreeType typedef names kept in notes) so export_header emits typed fields; same offsets" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:40:32.931Z" |
|---|
| summary | "Set byte order native: FreeType public API struct in process memory." |
|---|
| changed | |
|---|
|
|
|---|