Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

PG_FontEngine Class Reference

Inheritance diagram for PG_FontEngine:

Inheritance graph
[legend]
List of all members.

Detailed Description

C++ Encapsulation of the FreeType engine.

Author:
Alexander Pipelka / Ales Teska


Public Member Functions

 PG_FontEngine ()
 ~PG_FontEngine ()

Static Public Member Functions

bool RenderText (SDL_Surface *Surface, const PG_Rect &ClipRect, int BaseLineX, int BaseLineY, const char *Text, PG_Font *ParamIn)
 render text onto a surface

bool RenderText (SDL_Surface *Surface, PG_Rect *ClipRect, int BaseLineX, int BaseLineY, const char *Text, PG_Font *ParamIn)
bool GetTextSize (const char *Text, PG_Font *ParamIn, Uint16 *Width=NULL, Uint16 *Height=NULL, int *BaselineY=NULL, int *FontLineSkip=NULL, Uint16 *FontHeight=NULL, int *Ascent=NULL, int *Descent=NULL)

Static Protected Member Functions

bool BlitFTBitmap (SDL_Surface *Surface, FT_Bitmap *Bitmap, int PosX, int PosY, PG_Font *Param, PG_Rect *ClipRect)
void FontEngineError (FT_Error error)

Friends

class PG_Font


Constructor & Destructor Documentation

PG_FontEngine::PG_FontEngine  ) 
 

PG_FontEngine::~PG_FontEngine  ) 
 


Member Function Documentation

bool PG_FontEngine::BlitFTBitmap SDL_Surface *  Surface,
FT_Bitmap *  Bitmap,
int  PosX,
int  PosY,
PG_Font Param,
PG_Rect ClipRect
[static, protected]
 

void PG_FontEngine::FontEngineError FT_Error  error  )  [static, protected]
 

bool PG_FontEngine::GetTextSize const char *  Text,
PG_Font ParamIn,
Uint16 *  Width = NULL,
Uint16 *  Height = NULL,
int *  BaselineY = NULL,
int *  FontLineSkip = NULL,
Uint16 *  FontHeight = NULL,
int *  Ascent = NULL,
int *  Descent = NULL
[static]
 

bool PG_FontEngine::RenderText SDL_Surface *  Surface,
PG_Rect ClipRect,
int  BaseLineX,
int  BaseLineY,
const char *  Text,
PG_Font ParamIn
[static]
 

bool PG_FontEngine::RenderText SDL_Surface *  Surface,
const PG_Rect ClipRect,
int  BaseLineX,
int  BaseLineY,
const char *  Text,
PG_Font ParamIn
[static]
 

render text onto a surface

Parameters:
Surface destination for rendered text
ClipRect clipping rectangle
BaseLineX x-startposition of the rendered text (inside the surface)
BaseLineY baseline of the rendered text (inside the surface)
Text text to render
ParamIn pointer to font
Returns:
true on success


Friends And Related Function Documentation

friend class PG_Font [friend]
 



The ParaGUI Project - Alexander Pipelka