ScummVM API documentation
Tetraedge::TeFont3 Class Reference

#include <te_font3.h>

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

Public Member Functions

bool load (const Common::Path &path)
 
void unload ()
 
- Public Member Functions inherited from Tetraedge::TeIFont
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 ()
 

Additional Inherited Members

- Public Types inherited from Tetraedge::TeIFont
enum  AlignStyle { AlignLeft, AlignRight, AlignJustify, AlignCenter }
 
- Static Public Member Functions inherited from Tetraedge::TeObject
static void deleteLaterStatic (TeObject *obj)
 
static void deleteNow ()
 
static void cleanup ()
 
- Protected Attributes inherited from Tetraedge::TeIFont
Common::CodePage _codePage
 

Detailed Description

TeFont3 is a minimal wrapper on Graphics::Font for TTF files, supporting multiple sizes and matching the original TeFont api a bit closer.


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