Font/Development
< Font
Structures
CgsResource::Font
Version 1 (2006-11-13)
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x8 | Vector2 | mScaleUV | ||
0x18 | 0x8 | Padding | |||
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 | Not sure this is right | |
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 |
Version 1 (2007-02-22)
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersionId | 1 | |
0x4 | 0xC | Padding | |||
0x10 | 0x8 | Vector2 | mScaleUV | ||
0x18 | 0x8 | Padding | |||
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 | Not sure this is right | |
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
Version 1
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 | 0x8 | Vector2 | mTopLeftUV | ||
0x18 | 0x8 | Padding | |||
0x20 | 0x8 | Vector2 | mDimensionsUV | ||
0x28 | 0x8 | Padding | |||
0x30 | 0x8 | Vector2 | mStart | ||
0x38 | 0x8 | Padding | |||
0x40 | 0x4 | float32_t | mfAdvance | ||
0x44 | 0x4 | bool32_t | mIsLowerCaseScale | ||
0x48 | 0x4 | uint32_t | muPriority |