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

fgl::FGFontProperty Class Reference

#include <base.h>

List of all members.


Detailed Description

Describes the TrueType font provided by freetype library.
Examples:

ttf.cpp.


Public Types

enum  FONT_STYLE { ttfSolid, ttfShaded, ttfBlended }

Public Member Functions

 FGFontProperty (char *n, int sz)
 ~FGFontProperty ()
void Bold (int value)
void Underline (int value)
void Italic (int value)
void Solid (void)
void Shaded (void)
void Blended (void)
bool Valid (void)
FONT_STYLE GetAlgorithm (void)
void * GetFace (void)
char * PrepareFont (variable_record *var, int &size, int count, int offset, char *name)


Member Enumeration Documentation

enum fgl::FGFontProperty::FONT_STYLE
 

for rendering


Constructor & Destructor Documentation

fgl::FGFontProperty::FGFontProperty char *  n,
int  sz
 

Creates a TTF font face object for a Window text output. You can use a function Valid() to test for a valid font face.

Parameters:
n a filename ("arial.ttf" by example).
sz a size of font face in pixels.

fgl::FGFontProperty::~FGFontProperty  ) 
 

Unload the font face from memory.


Member Function Documentation

void fgl::FGFontProperty::Blended void   )  [inline]
 

Sets a blended rendering, slow but very nice.

Bug:
still not implemented.

void fgl::FGFontProperty::Bold int  value  ) 
 

Sets a 'bold' font style.

void fgl::FGFontProperty::Italic int  value  ) 
 

Sets an 'italic' font style.

void fgl::FGFontProperty::Shaded void   )  [inline]
 

Sets a shaded rendering, slow but very nice.

Examples:
ttf.cpp.

void fgl::FGFontProperty::Solid void   )  [inline]
 

Sets a solid rendering, fast but not very nice. Default.

Examples:
ttf.cpp.

void fgl::FGFontProperty::Underline int  value  ) 
 

Sets an 'underline' font style.

bool fgl::FGFontProperty::Valid void   )  [inline]
 

Test the object for a valid data.

Returns:
true if object contains a valid font face.


Generated on Wed Feb 9 11:31:38 2005 for OpenGUI by  doxygen 1.4.0