FTExtrudeFont Class Reference
FTExtrudeFont is a specialisation of the
FTFont class for handling extruded Polygon fonts.
More...
#include <FTGLExtrdFont.h>
|
Public Member Functions |
| FTExtrudeFont (const char *fontFilePath) |
| Open and read a font file.
|
| FTExtrudeFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) |
| Open and read a font from a buffer in memory.
|
| ~FTExtrudeFont () |
| Destructor.
|
Protected Member Functions |
virtual FTGlyph * | MakeGlyph (FT_GlyphSlot slot) |
| Construct a glyph of the correct type.
|
Detailed Description
FTExtrudeFont is a specialisation of the
FTFont class for handling extruded Polygon fonts.
- See also:
- FTFont
FTPolygonFont
Definition at line 46 of file FTGLExtrdFont.h.
Constructor & Destructor Documentation
FTExtrudeFont::FTExtrudeFont |
( |
const char * |
fontFilePath |
) |
|
Open and read a font file.
Sets Error flag.
- Parameters:
-
| fontFilePath | font file path. |
FTExtrudeFont::FTExtrudeFont |
( |
const unsigned char * |
pBufferBytes, |
|
|
size_t |
bufferSizeInBytes | |
|
) |
| | |
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.
- Parameters:
-
| pBufferBytes | the in-memory buffer |
| bufferSizeInBytes | the length of the buffer in bytes |
FTExtrudeFont::~FTExtrudeFont |
( |
|
) |
|
Member Function Documentation
virtual FTGlyph* FTExtrudeFont::MakeGlyph |
( |
FT_GlyphSlot |
slot |
) |
[protected, virtual] |
Construct a glyph of the correct type.
Clients must override the function and return their specialised FTGlyph.
- Parameters:
-
| slot | A FreeType glyph slot. |
- Returns:
- An FT****Glyph or
null
on failure.
Implements FTFont.
The documentation for this class was generated from the following file: