Font

From Burnout Wiki
Blank.png
Development
Information on versions of the Font resource type used during development.

Font resources link characters and textures together for other resources, such as Apt files, to use as fonts. Adjustability is limited.

Structures[edit | edit source]

The rw::Resource type changes between platforms. It is always null and is likely populated in memory, so it is not described here.

CgsResource::Font[edit | edit source]

PlayStation 3[edit | edit source]

Offset Length Type Name Description Comments
0x0 0x4 uint32_t muVersionId 10
0x4 0x4 size_t mSizeOfFont
0x8 0x8 Vector2 mScaleUV
0x10 0x4 float32_t mfLowerCaseScale
0x14 0x4 float32_t mfBaseLine
0x18 0x4 float32_t mfXHeight
0x1C 0x4 uint32_t muNumChars
0x20 0x4 FontChar* mpaFontChars
0x24 0x4 CgsUtf16* mpaFontCharIds
0x28 0x102 uint16_t[129] mauHashOffsets
0x12A 0x2 padding
0x12C 0x4 uint32_t muNumTexturePages
0x130 0x4 Texture** mpapTextures
0x134 0x4 TextureState* mpTextureState
0x138 0x18 Resource mTextureStateResource
0x150 0x4 uint32_t muFontHeightInPixels
0x154 0x80 char[128] macTypefaceFamilyName
0x1D4 0x80 char[128] macTypefaceStyleName

Xbox 360[edit | edit source]

Offset Length Type Name Description Comments
0x0 0x4 uint32_t muVersionId 10
0x4 0x4 size_t mSizeOfFont
0x8 0x8 Vector2 mScaleUV
0x10 0x4 float32_t mfLowerCaseScale
0x14 0x4 float32_t mfBaseLine
0x18 0x4 float32_t mfXHeight
0x1C 0x4 uint32_t muNumChars
0x20 0x4 FontChar* mpaFontChars
0x24 0x4 CgsUtf16* mpaFontCharIds
0x28 0x102 uint16_t[129] mauHashOffsets
0x12A 0x2 padding
0x12C 0x4 uint32_t muNumTexturePages
0x130 0x4 Texture** mpapTextures
0x134 0x4 TextureState* mpTextureState
0x138 0x14 Resource mTextureStateResource
0x14C 0x4 uint32_t muFontHeightInPixels
0x150 0x80 char[128] macTypefaceFamilyName
0x1D0 0x80 char[128] macTypefaceStyleName

PC, PC (Remastered)[edit | edit source]

Offset Length Type Name Description Comments
0x0 0x4 uint32_t muVersionId 10
0x4 0x4 size_t mSizeOfFont
0x8 0x8 Vector2 mScaleUV
0x10 0x4 float32_t mfLowerCaseScale
0x14 0x4 float32_t mfBaseLine
0x18 0x4 float32_t mfXHeight
0x1C 0x4 uint32_t muNumChars
0x20 0x4 FontChar* mpaFontChars
0x24 0x4 CgsUtf16* mpaFontCharIds
0x28 0x102 uint16_t[129] mauHashOffsets
0x12A 0x2 padding
0x12C 0x4 uint32_t muNumTexturePages
0x130 0x4 Texture** mpapTextures
0x134 0x4 TextureState* mpTextureState
0x138 0x10 Resource mTextureStateResource
0x148 0x4 uint32_t muFontHeightInPixels
0x14C 0x80 char[128] macTypefaceFamilyName
0x1CC 0x80 char[128] macTypefaceStyleName

PlayStation 4, Switch[edit | edit source]

Offset Size Type Name Description Comments
0x0 0x4 uint32_t muVersionId 10
0x4 0x4 padding
0x8 0x8 size_t mSizeOfFont
0x10 0x8 Vector2 mScaleUV
0x18 0x4 float32_t mfLowerCaseScale
0x1C 0x4 float32_t mfBaseLine
0x20 0x4 float32_t mfXHeight
0x24 0x4 uint32_t muNumChars
0x28 0x8 FontChar* mpaFontChars
0x30 0x8 CgsUtf16* mpaFontCharIds
0x38 0x102 uint16_t[129] mauHashOffsets
0x13A 0x2 padding
0x13C 0x4 uint32_t muNumTexturePages
0x140 0x8 Texture** mpapTextures
0x148 0x8 TextureState* mpTextureState
0x150 0x20 Resource mTextureStateResource
0x170 0x4 uint32_t muFontHeightInPixels
0x174 0x80 char[128] macTypefaceFamilyName
0x1F4 0x80 char[128] macTypefaceStyleName

CgsResource::FontChar[edit | edit source]

Offset Length Type Name Description Comments
0x0 0x8 Vector2 mTopLeftUV
0x8 0x8 Vector2 mDimensionsUV
0x10 0x8 Vector2 mStart
0x18 0x4 float32_t mfAdvance
0x1C 0x2 uint16_t mu16TexturePageId
0x1E 0x1 bool8_t mbIsLowerCaseScale
0x1F 0x1 bool8_t mbIsRenderable

Typedefs[edit | edit source]

CgsUnicode::UnicodeBuffer::Convert::CgsUtf16[edit | edit source]

Name Type Length Comments
CgsUtf16 uint16_t 0x2