Font/Development

Revision as of 08:24, 3 October 2023 by Burninrubber0 (talk | contribs) (Normalization)

Structures

CgsResource::Font

Version 1 (2006-11-13)

Xbox 360
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 uint32_t ? Resource size Or an unused pointer to EOF
0x40 0x4 TextureState* mpTextureState
0x44 0x14 Resource mTextureStateResource
0x58 0x80 char[128] macTypefaceFamilyName
0xD8 0x80 char[128] macTypefaceStyleName

Version 1 (2007-02-22)

Xbox 360
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 uint32_t ? Resource size Or an unused pointer to EOF
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

Xbox 360
Offset Length Type Name Description Comments
0x0 0x2 CgsUtf16 ? FontChar ID
0x2 0xE 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 ? ? No idea
0x48 0x2 uint16_t mu16TexturePageId
0x4A 0x1 bool8_t mbIsLowerCaseScale
0x4B 0x1 bool8_t mbIsRenderable