ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

The font provider offers a set of predefined fonts for the game to use. More...

#include <fontprovider.h>

Collaboration diagram for Stark::FontProvider:

List of all members.

Classes

struct  FontHolder

Public Types

enum  FontType { kSmallFont, kBigFont, kCustomFont }

Public Member Functions

 FontProvider ()
 ~FontProvider ()
const Graphics::FontgetScaledFont (FontType type, int32 customFontIndex)
 Request a font matching the specified parameters.
uint getScaledFontHeight (FontType type, int32 customFontIndex)
 Get the height of the font matching the specified parameters.
uint getOriginalFontHeight (FontType type, int32 customFontIndex)
void initFonts ()
 Load all the fonts to memory.

Private Member Functions

void readFontEntry (const Common::INIFile *gui, FontHolder &holder, const char *nameKey, const char *sizeKey)
FontHoldergetFontHolder (FontType type, int32 customFontIndex)

Private Attributes

FontHolder _smallFont
FontHolder _bigFont
FontHolder _customFonts [8]
Common::StringMap _ttfFileMap

Detailed Description

The font provider offers a set of predefined fonts for the game to use.

Definition at line 42 of file fontprovider.h.


Member Enumeration Documentation

Enumerator:
kSmallFont 
kBigFont 
kCustomFont 

Definition at line 47 of file fontprovider.h.


Constructor & Destructor Documentation

Stark::FontProvider::FontProvider (  ) 

Definition at line 37 of file fontprovider.cpp.

Stark::FontProvider::~FontProvider (  ) 

Definition at line 40 of file fontprovider.cpp.


Member Function Documentation

FontProvider::FontHolder * Stark::FontProvider::getFontHolder ( FontProvider::FontType  type,
int32  customFontIndex 
) [private]

Definition at line 126 of file fontprovider.cpp.

uint Stark::FontProvider::getOriginalFontHeight ( FontProvider::FontType  type,
int32  customFontIndex 
)

Definition at line 152 of file fontprovider.cpp.

const Graphics::Font * Stark::FontProvider::getScaledFont ( FontProvider::FontType  type,
int32  customFontIndex 
)

Request a font matching the specified parameters.

Definition at line 137 of file fontprovider.cpp.

uint Stark::FontProvider::getScaledFontHeight ( FontProvider::FontType  type,
int32  customFontIndex 
)

Get the height of the font matching the specified parameters.

Definition at line 147 of file fontprovider.cpp.

void Stark::FontProvider::initFonts (  ) 

Load all the fonts to memory.

Definition at line 43 of file fontprovider.cpp.

void Stark::FontProvider::readFontEntry ( const Common::INIFile gui,
FontHolder holder,
const char *  nameKey,
const char *  sizeKey 
) [private]

Definition at line 87 of file fontprovider.cpp.


Member Data Documentation

Definition at line 85 of file fontprovider.h.

Definition at line 86 of file fontprovider.h.

Definition at line 84 of file fontprovider.h.


The documentation for this class was generated from the following files:


Generated on Sat Mar 16 2019 05:06:54 for ResidualVM by doxygen 1.7.1
curved edge   curved edge