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

Wintermute::BaseFontTT Class Reference

#include <base_font_truetype.h>

Inheritance diagram for Wintermute::BaseFontTT:
Collaboration diagram for Wintermute::BaseFontTT:

List of all members.

Classes

class  BaseCachedTTFontText
class  BaseTTFontLayer

Public Member Functions

 BaseFontTT (BaseGame *inGame)
 ~BaseFontTT (void) override
int getTextWidth (const byte *text, int maxLength=-1) override
int getTextHeight (const byte *text, int width) override
void drawText (const byte *text, int x, int y, int width, TTextAlign align=TAL_LEFT, int max_height=-1, int maxLength=-1) override
int getLetterHeight () override
bool loadBuffer (char *buffer)
bool loadFile (const Common::String &filename)
float getLineHeight () const
void afterLoad () override
void initLoop () override

Private Member Functions

bool parseLayer (BaseTTFontLayer *layer, char *buffer)
void measureText (const WideString &text, int maxWidth, int maxHeight, int &textWidth, int &textHeight)
BaseSurfacerenderTextToTexture (const WideString &text, int width, TTextAlign align, int maxHeight, int &textOffset)
bool initFont ()
void clearCache ()

Private Attributes

BaseCachedTTFontText_cachedTexts [NUM_CACHED_TEXTS]
Graphics::Font_deletableFont
const Graphics::Font_font
const Graphics::Font_fallbackFont
float _lineHeight
size_t _maxCharWidth
size_t _maxCharHeight
bool _isBold
bool _isItalic
bool _isUnderline
bool _isStriked
int32 _fontHeight
char * _fontFile
TTextCharset _charset
BaseArray< BaseTTFontLayer * > _layers

Detailed Description

Definition at line 43 of file base_font_truetype.h.


Constructor & Destructor Documentation

Wintermute::BaseFontTT::BaseFontTT ( BaseGame inGame  ) 

Definition at line 48 of file base_font_truetype.cpp.

Wintermute::BaseFontTT::~BaseFontTT ( void   )  [override]

Definition at line 67 of file base_font_truetype.cpp.


Member Function Documentation

void Wintermute::BaseFontTT::afterLoad (  )  [override, virtual]

Reimplemented from Wintermute::BaseFont.

Definition at line 561 of file base_font_truetype.cpp.

void Wintermute::BaseFontTT::clearCache (  )  [private]

Definition at line 84 of file base_font_truetype.cpp.

void Wintermute::BaseFontTT::drawText ( const byte text,
int  x,
int  y,
int  width,
TTextAlign  align = TAL_LEFT,
int  max_height = -1,
int  maxLength = -1 
) [override, virtual]

Reimplemented from Wintermute::BaseFont.

Definition at line 153 of file base_font_truetype.cpp.

int Wintermute::BaseFontTT::getLetterHeight (  )  [override, virtual]

Reimplemented from Wintermute::BaseFont.

Definition at line 313 of file base_font_truetype.cpp.

float Wintermute::BaseFontTT::getLineHeight (  )  const [inline]

Definition at line 110 of file base_font_truetype.h.

int Wintermute::BaseFontTT::getTextHeight ( const byte text,
int  width 
) [override, virtual]

Reimplemented from Wintermute::BaseFont.

Definition at line 135 of file base_font_truetype.cpp.

int Wintermute::BaseFontTT::getTextWidth ( const byte text,
int  maxLength = -1 
) [override, virtual]

Reimplemented from Wintermute::BaseFont.

Definition at line 114 of file base_font_truetype.cpp.

bool Wintermute::BaseFontTT::initFont (  )  [private]

Definition at line 566 of file base_font_truetype.cpp.

void Wintermute::BaseFontTT::initLoop (  )  [override, virtual]

Reimplemented from Wintermute::BaseFont.

Definition at line 94 of file base_font_truetype.cpp.

TOKEN_DEF_START TOKEN_DEF_END bool Wintermute::BaseFontTT::loadBuffer ( char *  buffer  ) 

Definition at line 357 of file base_font_truetype.cpp.

bool Wintermute::BaseFontTT::loadFile ( const Common::String filename  ) 

Definition at line 319 of file base_font_truetype.cpp.

void Wintermute::BaseFontTT::measureText ( const WideString text,
int  maxWidth,
int  maxHeight,
int &  textWidth,
int &  textHeight 
) [private]

Definition at line 628 of file base_font_truetype.cpp.

bool Wintermute::BaseFontTT::parseLayer ( BaseTTFontLayer layer,
char *  buffer 
) [private]

Definition at line 470 of file base_font_truetype.cpp.

BaseSurface * Wintermute::BaseFontTT::renderTextToTexture ( const WideString text,
int  width,
TTextAlign  align,
int  maxHeight,
int &  textOffset 
) [private]

Definition at line 247 of file base_font_truetype.cpp.


Member Data Documentation

Definition at line 124 of file base_font_truetype.h.

Definition at line 130 of file base_font_truetype.h.

Definition at line 129 of file base_font_truetype.h.

Definition at line 143 of file base_font_truetype.h.

Definition at line 142 of file base_font_truetype.h.

Definition at line 138 of file base_font_truetype.h.

Definition at line 139 of file base_font_truetype.h.

Definition at line 141 of file base_font_truetype.h.

Definition at line 140 of file base_font_truetype.h.

Definition at line 132 of file base_font_truetype.h.

Definition at line 135 of file base_font_truetype.h.

Definition at line 134 of file base_font_truetype.h.


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


Generated on Sat Sep 26 2020 05:04:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge