ScummVM API documentation
Stark::FontProvider Class Reference

#include <fontprovider.h>

Public Types

enum  FontType { kSmallFont, kBigFont, kCustomFont }
 

Public Member Functions

const Graphics::FontgetScaledFont (FontType type, int32 customFontIndex)
 
uint getScaledFontHeight (FontType type, int32 customFontIndex)
 
uint getOriginalFontHeight (FontType type, int32 customFontIndex)
 
void initFonts ()
 

Detailed Description

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

Member Function Documentation

◆ getScaledFont()

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

Request a font matching the specified parameters

◆ getScaledFontHeight()

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

Get the height of the font matching the specified parameters

◆ initFonts()

void Stark::FontProvider::initFonts ( )

Load all the fonts to memory


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