Font
Font | |||
---|---|---|---|
The texture sheet for the Machine Std Bold font used as a header font in v1.0. | |||
Resource names | Font name, e.g. WesternB5Body_35 | ||
Type ID | 0x21 | ||
Category | Generic | ||
Memory distribution |
Main Memory only | ||
Imports | Texture | ||
Editor available? |
No |
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
Note: The rw::Resource
type is a set of pointers corresponding in both indices and counts to the base resource types. Pointers are 64-bit on PS4, Switch, and likely XB1, and are otherwise 32-bit.
CgsResource::Font
PlayStation 3
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
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)
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
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
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
CgsUnicode::UnicodeBuffer::Convert::CgsUtf16
Name | Type | Length | Comments |
---|---|---|---|
CgsUtf16 | uint16_t | 0x2 |