NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::ut::ResFont Class Reference
Inheritance diagram for nw4r::ut::ResFont:
[legend]

Description

Definition at line 13 of file ut_ResFont.h.

Public Member Functions

bool SetResource (void *pBuffer)
 
- Public Member Functions inherited from nw4r::ut::detail::ResFontBase
virtual int GetWidth () const
 
virtual int GetHeight () const
 
virtual int GetAscent () const
 
virtual int GetDescent () const
 
virtual int GetBaselinePos () const
 
virtual int GetCellHeight () const
 
virtual int GetCellWidth () const
 
virtual int GetMaxCharWidth () const
 
virtual Type GetType () const
 
virtual GXTexFmt GetTextureFormat () const
 
virtual int GetLineFeed () const
 
virtual CharWidths GetDefaultCharWidths () const
 
virtual void SetDefaultCharWidths (const CharWidths &rWidths)
 
virtual bool SetAlternateChar (u16 ch)
 
virtual void SetLineFeed (int lf)
 
virtual int GetCharWidth (u16 ch) const
 
virtual CharWidths GetCharWidths (u16 ch) const
 
virtual void GetGlyph (Glyph *pGlyph, u16 ch) const
 
virtual FontEncoding GetEncoding () const
 
- Public Member Functions inherited from nw4r::ut::Font
void InitReaderFunc (FontEncoding encode)
 
CharStrmReader GetCharStrmReader () const
 

Static Private Member Functions

static FontInformationRebuild (BinaryFileHeader *pHeader)
 

Static Private Attributes

static const ulong SIGNATURE = 'RFNT'
 
static const ulong SIGNATURE_UNPACKED = 'RFNU'
 
static const ulong SIGNATURE_FONTINFO = 'FINF'
 
static const ulong SIGNATURE_TEXGLYPH = 'TGLP'
 
static const ulong SIGNATURE_CHARWIDTH = 'CWDH'
 
static const ulong SIGNATURE_CHARMAP = 'CMAP'
 
static const ulong SIGNATURE_GLGR = 'GLGR'
 

Additional Inherited Members

- Public Types inherited from nw4r::ut::Font
enum  Type {
  TYPE_NULL ,
  TYPE_ROM ,
  TYPE_RESOURCE ,
  TYPE_PAIR
}
 
- Static Public Attributes inherited from nw4r::ut::detail::ResFontBase
static const u16 GLYPH_INDEX_NOT_FOUND = 0xFFFF
 
- Protected Member Functions inherited from nw4r::ut::detail::ResFontBase
bool IsManaging (const void *pBuffer) const
 
void SetResourceBuffer (void *pBuffer, FontInformation *pInfo)
 

Member Data Documentation

◆ SIGNATURE

const ulong nw4r::ut::ResFont::SIGNATURE = 'RFNT'
staticprivate

Definition at line 24 of file ut_ResFont.h.

◆ SIGNATURE_UNPACKED

const ulong nw4r::ut::ResFont::SIGNATURE_UNPACKED = 'RFNU'
staticprivate

Definition at line 25 of file ut_ResFont.h.

◆ SIGNATURE_FONTINFO

const ulong nw4r::ut::ResFont::SIGNATURE_FONTINFO = 'FINF'
staticprivate

Definition at line 27 of file ut_ResFont.h.

◆ SIGNATURE_TEXGLYPH

const ulong nw4r::ut::ResFont::SIGNATURE_TEXGLYPH = 'TGLP'
staticprivate

Definition at line 28 of file ut_ResFont.h.

◆ SIGNATURE_CHARWIDTH

const ulong nw4r::ut::ResFont::SIGNATURE_CHARWIDTH = 'CWDH'
staticprivate

Definition at line 29 of file ut_ResFont.h.

◆ SIGNATURE_CHARMAP

const ulong nw4r::ut::ResFont::SIGNATURE_CHARMAP = 'CMAP'
staticprivate

Definition at line 30 of file ut_ResFont.h.

◆ SIGNATURE_GLGR

const ulong nw4r::ut::ResFont::SIGNATURE_GLGR = 'GLGR'
staticprivate

Definition at line 33 of file ut_ResFont.h.