Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

ofTrueTypeFont Class Reference

#include <ofTrueTypeFont.h>

List of all members.

Public Member Functions

 ofTrueTypeFont ()
virtual ~ofTrueTypeFont ()
void loadFont (string filename, int fontsize)
void loadFont (string filename, int fontsize, bool _bAntiAliased, bool _bFullCharacterSet, bool makeContours=false)
float getLineHeight ()
void setLineHeight (float height)
float stringWidth (string s)
float stringHeight (string s)
ofRectangle getStringBoundingBox (string s, float x, float y)
void drawString (string s, float x, float y)
void drawStringAsShapes (string s, float x, float y)
ofTTFCharacter getCharacterAsPoints (int character)

Public Attributes

bool bLoadedOk
bool bAntiAlised
bool bFullCharacterSet
int nCharacters

Protected Member Functions

void drawChar (int c, float x, float y)
void drawCharAsShape (int c, float x, float y)
int ofNextPow2 (int a)

Protected Attributes

vector< ofTTFCharactercharOutlines
float lineHeight
charPropscps
GLuint * texNames
int fontSize
bool bMakeContours
int border
int visibleBorder

Constructor & Destructor Documentation

ofTrueTypeFont::ofTrueTypeFont (  )
ofTrueTypeFont::~ofTrueTypeFont (  ) [virtual]

Member Function Documentation

void ofTrueTypeFont::drawChar ( int  c,
float  x,
float  y 
) [protected]
void ofTrueTypeFont::drawCharAsShape ( int  c,
float  x,
float  y 
) [protected]
void ofTrueTypeFont::drawString ( string  s,
float  x,
float  y 
)
void ofTrueTypeFont::drawStringAsShapes ( string  s,
float  x,
float  y 
)
ofTTFCharacter ofTrueTypeFont::getCharacterAsPoints ( int  character )
float ofTrueTypeFont::getLineHeight (  )
ofRectangle ofTrueTypeFont::getStringBoundingBox ( string  s,
float  x,
float  y 
)
void ofTrueTypeFont::loadFont ( string  filename,
int  fontsize,
bool  _bAntiAliased,
bool  _bFullCharacterSet,
bool  makeContours = false 
)
void ofTrueTypeFont::loadFont ( string  filename,
int  fontsize 
)
int ofTrueTypeFont::ofNextPow2 ( int  a ) [protected]
void ofTrueTypeFont::setLineHeight ( float  height )
float ofTrueTypeFont::stringHeight ( string  s )
float ofTrueTypeFont::stringWidth ( string  s )

Member Data Documentation

int ofTrueTypeFont::border [protected]
int ofTrueTypeFont::fontSize [protected]
float ofTrueTypeFont::lineHeight [protected]
GLuint* ofTrueTypeFont::texNames [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines