ScummVM API documentation
Tetraedge::TeIFont Class Referenceabstract

#include <te_i_font.h>

Inheritance diagram for Tetraedge::TeIFont:
Tetraedge::TeResource Tetraedge::TeObject Tetraedge::TeReferencesCounter Tetraedge::TeFont2 Tetraedge::TeFont3

Classes

struct  GlyphData
 

Public Types

enum  AlignStyle { AlignLeft, AlignRight, AlignJustify, AlignCenter }
 

Public Member Functions

virtual Graphics::FontgetAtSize (uint size)=0
 
virtual float ascender (uint pxSize)
 
virtual float descender (uint pxSize)
 
virtual float height (uint pxSize)
 
virtual TeVector3f32 kerning (uint pxSize, uint isocode1, uint isocode2)
 
virtual void draw (TeImage &destImage, const Common::String &str, int fontSize, int yoff, const TeColor &col, AlignStyle alignMode)
 
virtual Common::Rect getBBox (const Common::String &str, int fontSize)
 
virtual int getHeight (int fontSize)
 
virtual int wordWrapText (const Common::String &str, int fontSize, int maxWidth, Common::Array< Common::String > &lines)
 
virtual TeIFont::GlyphData glyph (uint pxSize, uint charcode)
 
- Public Member Functions inherited from Tetraedge::TeResource
void generateAccessName ()
 
const Common::PathgetAccessName () const
 
void setAccessName (const Common::Path &name)
 
- Public Member Functions inherited from Tetraedge::TeObject
void deleteLater ()
 
- Public Member Functions inherited from Tetraedge::TeReferencesCounter
bool decrementCounter ()
 
void incrementCounter ()
 
void resetCounter ()
 

Protected Attributes

Common::CodePage _codePage
 

Additional Inherited Members

- Static Public Member Functions inherited from Tetraedge::TeObject
static void deleteLaterStatic (TeObject *obj)
 
static void deleteNow ()
 
static void cleanup ()
 

Detailed Description

A wrapper to provide a TeFont-like interface using ScummVM'S font class.


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