| FTGL
    2.4.0
    | 
FTPolygonFont is a specialisation of the FTFont class for handling tesselated Polygon Mesh fonts. More...
#include <FTGLTriangleExtractorFont.h>
| Public Member Functions | |
| FTTriangleExtractorFont (const char *fontFilePath, std::vector< float > &triangles) | |
| Open and read a font file.  More... | |
| FTTriangleExtractorFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes, std::vector< float > &triangles) | |
| Open and read a font from a buffer in memory.  More... | |
| ~FTTriangleExtractorFont () | |
| Destructor.  More... | |
|  Public Member Functions inherited from FTFont | |
| virtual | ~FTFont () | 
| virtual bool | Attach (const char *fontFilePath) | 
| Attach auxilliary file to font e.g font metrics.  More... | |
| virtual bool | Attach (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | 
| Attach auxilliary data to font e.g font metrics, from memory.  More... | |
| virtual void | GlyphLoadFlags (FT_Int flags) | 
| Set the glyph loading flags.  More... | |
| virtual bool | CharMap (FT_Encoding encoding) | 
| Set the character map for the face.  More... | |
| virtual unsigned int | CharMapCount () const | 
| Get the number of character maps in this face.  More... | |
| virtual FT_Encoding * | CharMapList () | 
| Get a list of character maps in this face.  More... | |
| virtual bool | FaceSize (const unsigned int size, const unsigned int res=72) | 
| Set the char size for the current face.  More... | |
| virtual unsigned int | FaceSize () const | 
| Get the current face size in points (1/72 inch).  More... | |
| virtual void | Depth (float depth) | 
| Set the extrusion distance for the font.  More... | |
| virtual void | Outset (float outset) | 
| Set the outset distance for the font.  More... | |
| virtual void | Outset (float front, float back) | 
| Set the front and back outset distances for the font.  More... | |
| virtual void | UseDisplayList (bool useList) | 
| Enable or disable the use of Display Lists inside FTGL.  More... | |
| virtual float | Ascender () const | 
| Get the global ascender height for the face.  More... | |
| virtual float | Descender () const | 
| Gets the global descender height for the face.  More... | |
| virtual float | LineHeight () const | 
| Gets the line spacing for the font.  More... | |
| virtual FTBBox | BBox (const char *string, const int len=-1, FTPoint position=FTPoint(), FTPoint spacing=FTPoint()) | 
| Get the bounding box for a string.  More... | |
| void | BBox (const char *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz) | 
| Get the bounding box for a string (deprecated).  More... | |
| virtual FTBBox | BBox (const wchar_t *string, const int len=-1, FTPoint position=FTPoint(), FTPoint spacing=FTPoint()) | 
| Get the bounding box for a string.  More... | |
| void | BBox (const wchar_t *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz) | 
| Get the bounding box for a string (deprecated).  More... | |
| virtual float | Advance (const char *string, const int len=-1, FTPoint spacing=FTPoint()) | 
| Get the advance for a string.  More... | |
| virtual float | Advance (const wchar_t *string, const int len=-1, FTPoint spacing=FTPoint()) | 
| Get the advance for a string.  More... | |
| virtual FTPoint | Render (const char *string, const int len=-1, FTPoint position=FTPoint(), FTPoint spacing=FTPoint(), int renderMode=FTGL::RENDER_ALL) | 
| Render a string of characters.  More... | |
| virtual FTPoint | Render (const wchar_t *string, const int len=-1, FTPoint position=FTPoint(), FTPoint spacing=FTPoint(), int renderMode=FTGL::RENDER_ALL) | 
| Render a string of characters.  More... | |
| virtual FT_Error | Error () const | 
| Queries the Font for errors.  More... | |
| Protected Member Functions | |
| virtual FTGlyph * | MakeGlyph (FT_GlyphSlot slot) | 
| Construct a glyph of the correct type.  More... | |
|  Protected Member Functions inherited from FTFont | |
| FTFont (char const *fontFilePath) | |
| Open and read a font file.  More... | |
| FTFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
| Open and read a font from a buffer in memory.  More... | |
FTPolygonFont is a specialisation of the FTFont class for handling tesselated Polygon Mesh fonts.
Definition at line 44 of file FTGLTriangleExtractorFont.h.
| FTTriangleExtractorFont::FTTriangleExtractorFont | ( | const char * | fontFilePath, | 
| std::vector< float > & | triangles | ||
| ) | 
Open and read a font file.
Sets Error flag.
| fontFilePath | font file path. | 
| triangles | the container to store the triangle data. | 
| FTTriangleExtractorFont::FTTriangleExtractorFont | ( | const unsigned char * | pBufferBytes, | 
| size_t | bufferSizeInBytes, | ||
| std::vector< float > & | triangles | ||
| ) | 
Open and read a font from a buffer in memory.
Sets Error flag. The buffer is owned by the client and is NOT copied by FTGL. The pointer must be valid while using FTGL.
| pBufferBytes | the in-memory buffer | 
| bufferSizeInBytes | the length of the buffer in bytes | 
| triangles | the container to store the triangle data. | 
| FTTriangleExtractorFont::~FTTriangleExtractorFont | ( | ) | 
Destructor.
| 
 | protectedvirtual | 
 1.8.15
 1.8.15