Font/Development
< Font
Compared to the release version, the vectors used here are the VPU variants rather than FPU.
Versions
- 2006-11-13: Used in the 2006-11-13 build of Burnout Paradise
- 2007-01-30, 2007-02-22: Used in the 2007-01-30 and 2007-02-22 builds of Burnout Paradise.
Structures
CgsResource::Font
2006-11-13
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x10 | vpu::Vector2 | mScaleUV | ||
0x20 | 0x4 | float32_t | mfLowerCaseScale | ||
0x24 | 0x4 | float32_t | mfBaseLine | ||
0x28 | 0x4 | float32_t | mfXHeight | ||
0x2C | 0x4 | uint32_t | muNumChars | ||
0x30 | 0x4 | FontChar* | mpaFontChars | ||
0x34 | 0x4 | uint32_t | muNumTexturePages | ||
0x38 | 0x4 | Texture** | mpapTextures | Imported resources | |
0x3C | 0x4 | size_t | mSizeOfFont | Resource size | |
0x40 | 0x4 | TextureState* | mpTextureState | ||
0x44 | 0x14 | Resource | mTextureStateResource | ||
0x58 | 0x80 | char[128] | macTypefaceFamilyName | ||
0xD8 | 0x80 | char[128] | macTypefaceStyleName |
2007-01-30, 2007-02-22
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x10 | vpu::Vector2 | mScaleUV | ||
0x20 | 0x4 | float32_t | mfLowerCaseScale | ||
0x24 | 0x4 | float32_t | mfBaseLine | ||
0x28 | 0x4 | float32_t | mfXHeight | ||
0x2C | 0x4 | uint32_t | muNumChars | ||
0x30 | 0x4 | FontChar* | mpaFontChars | ||
0x34 | 0x4 | uint32_t | muNumTexturePages | ||
0x38 | 0x4 | Texture** | mpapTextures | Imported resources | |
0x3C | 0x4 | size_t | mSizeOfFont | Resource size | |
0x40 | 0x4 | TextureState* | mpTextureState | ||
0x44 | 0x18 | Resource | mTextureStateResource | ||
0x5C | 0x4 | uint32_t | muFontHeightInPixels | ||
0x60 | 0x80 | char[128] | macTypefaceFamilyName | ||
0xE0 | 0x80 | char[128] | macTypefaceStyleName |
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x10 | vpu::Vector2 | mScaleUV | ||
0x20 | 0x4 | float32_t | mfLowerCaseScale | ||
0x24 | 0x4 | float32_t | mfBaseLine | ||
0x28 | 0x4 | float32_t | mfXHeight | ||
0x2C | 0x4 | uint32_t | muNumChars | ||
0x30 | 0x4 | FontChar* | mpaFontChars | ||
0x34 | 0x4 | uint32_t | muNumTexturePages | ||
0x38 | 0x4 | Texture** | mpapTextures | Imported resources | |
0x3C | 0x4 | size_t | mSizeOfFont | Resource size | |
0x40 | 0x4 | TextureState* | mpTextureState | ||
0x44 | 0x14 | Resource | mTextureStateResource | ||
0x58 | 0x4 | uint32_t | muFontHeightInPixels | ||
0x5C | 0x80 | char[128] | macTypefaceFamilyName | ||
0xDC | 0x80 | char[128] | macTypefaceStyleName |
CgsResource::FontChar
2006-11-13, 2007-01-30, 2007-02-22
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x2 | CgsUtf16 | mUtf16Unicode | FontChar ID | |
0x2 | 0x2 | Padding | |||
0x4 | 0x4 | uint32_t | muTexturePageId | Texture page ID | |
0x8 | 0x8 | Padding | |||
0x10 | 0x10 | vpu::Vector2 | mTopLeftUV | ||
0x20 | 0x10 | vpu::Vector2 | mDimensionsUV | ||
0x30 | 0x10 | vpu::Vector2 | mStart | ||
0x40 | 0x4 | float32_t | mfAdvance | ||
0x44 | 0x4 | bool32_t | mIsLowerCaseScale | ||
0x48 | 0x4 | uint32_t | muPriority |