Rasterfarm-SDK
Loading...
Searching...
No Matches
FTFont Class Reference

#include <ftfont.h>

Inheritance diagram for FTFont:
TexturedFont Font

Public Member Functions

 FTFont (const char *fontFile, uint fontSize)
 
virtual ~FTFont ()
 
Vertex2fArray createContourVertices (const FT_Glyph &glyph, uint contourStartIndex, uint contourEndIndex, uint resolution)
 
HeapArray< Vertex2fArraycreateOutline (char index, uint resolution)
 
void createMesh (const HeapArray< Vertex2fArray > &contour, Mesh::TriangleMesh *pMesh)
 
void createMesh (char index, uint resolution, Mesh::TriangleMesh *pMesh)
 
- Public Member Functions inherited from TexturedFont
 TexturedFont (const char *fontName, uint fontSize)
 
virtual ~TexturedFont ()
 
uint getFontSize ()
 
TexturegetTexture ()
 
virtual float getFontHeight ()
 
const CharacterMetric getCharacterMetric (char index) const
 
- Public Member Functions inherited from Font
 Font (const char *fontName)
 
virtual ~Font ()
 
String getFontName ()
 

Static Public Member Functions

static void deletePixels (Byte *pPixel)
 

Friends

class TexturedFont
 

Additional Inherited Members

- Public Types inherited from TexturedFont
typedef HeapArray< CharacterMetricCharacterMetricArray
 
- Protected Attributes inherited from TexturedFont
CharacterMetricArray characterMetric
 
uint fontSize
 
TexturepTexture
 
uint cellWidth
 
uint cellHeight
 
- Protected Attributes inherited from Font
String fontName
 
- Static Protected Attributes inherited from TexturedFont
static const uint CELLS_PER_COL = 16
 
- Static Protected Attributes inherited from Font
static const uint CHAR_SET_SIZE = 256
 

Constructor & Destructor Documentation

◆ FTFont()

FTFont::FTFont ( const char * fontFile,
uint fontSize )

◆ ~FTFont()

virtual FTFont::~FTFont ( )
virtual

Member Function Documentation

◆ createContourVertices()

Vertex2fArray FTFont::createContourVertices ( const FT_Glyph & glyph,
uint contourStartIndex,
uint contourEndIndex,
uint resolution )

◆ createMesh() [1/2]

void FTFont::createMesh ( char index,
uint resolution,
Mesh::TriangleMesh * pMesh )
virtual

Implements TexturedFont.

◆ createMesh() [2/2]

void FTFont::createMesh ( const HeapArray< Vertex2fArray > & contour,
Mesh::TriangleMesh * pMesh )

◆ createOutline()

HeapArray< Vertex2fArray > FTFont::createOutline ( char index,
uint resolution )
virtual

Implements TexturedFont.

◆ deletePixels()

static void FTFont::deletePixels ( Byte * pPixel)
static

Friends And Related Symbol Documentation

◆ TexturedFont

friend class TexturedFont
friend

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