From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:FreeType" |
|---|
| claim | "FT_Bitmap (slot->bitmap, the rendered glyph) on 64-bit targets (Windows x64 and LP64 alike, it has no long fields): 0x28 bytes. On 32-bit targets: rows 0, width 4, pitch 8, buffer 0xC, num_grays 0x10, pixel_mode 0x12, palette_mode 0x13, palette 0x14, size 0x18. pixel_mode: 1 MONO (1 bit per pixel, MSB first), 2 GRAY (8-bit coverage), 3 GRAY2, 4 GRAY4, 5 LCD (width is 3x the pixels), 6 LCD_V (rows 3x), 7 BGRA (premultiplied color glyphs). pitch is negative for bottom-up bitmaps." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:FreeType" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FT_Bitmap" |
|---|
| size | 40 |
|---|
| alignment | 8 |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "unsigned int" |
|---|
| name | "rows" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "unsigned int" |
|---|
| name | "width" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "pitch" |
|---|
| notes | "bytes per row, signed" |
|---|
|
| offset | 16 |
|---|
| size | 8 |
|---|
| type | "unsigned char*" |
|---|
| name | "buffer" |
|---|
|
| offset | 24 |
|---|
| size | 2 |
|---|
| type | "unsigned short" |
|---|
| name | "num_grays" |
|---|
| notes | "256 for GRAY" |
|---|
|
| offset | 26 |
|---|
| size | 1 |
|---|
| type | "unsigned char" |
|---|
| name | "pixel_mode" |
|---|
|
| offset | 27 |
|---|
| size | 1 |
|---|
| type | "unsigned char" |
|---|
| name | "palette_mode" |
|---|
|
| offset | 32 |
|---|
| size | 8 |
|---|
| type | "void*" |
|---|
| name | "palette" |
|---|
|
|
|---|
| endianness | "native" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "typedef struct FT_Bitmap_ { unsigned int rows; unsigned int width; int pitch; unsigned char* buffer; unsigned short num_grays; unsigned char pixel_mode; unsigned char palette_mode; void* palette; } FT_Bitmap; FT_Pixel_Mode enum in the same file" |
|---|
| repo | "https://github.com/freetype/freetype" |
|---|
| commit | "37515cf56ba3349656049edbed89ffc6f6466f2d" |
|---|
| path | "include/freetype/ftimage.h" |
|---|
| lines | "275-286" |
|---|
|
| type | "comparison" |
|---|
| detail | "Same field list at VER-2-6-2 (rows and width were already unsigned int). Offsets computed with standard C alignment." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "FT_Bitmap 64-bit" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T15:56:46.125Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:40:32.785Z" |
|---|
| summary | "Set byte order native: FreeType public API struct in process memory." |
|---|
| changed | |
|---|
|
|
|---|