#include <FTGL/ftgl.h>
Go to the source code of this file.
Data Structures | |
| class | FTFont |
| FTFont is the public interface for the FTGL library. More... | |
Typedefs | |
| typedef _FTGLfont | FTGLfont |
Functions | |
| FTGLfont * | ftglCreateCustomFont (char const *fontFilePath, void *data, FTGLglyph *(*makeglyphCallback)(FT_GlyphSlot, void *)) |
| Create a custom FTGL font object. | |
| void | ftglDestroyFont (FTGLfont *font) |
| Destroy an FTGL font object. | |
| int | ftglAttachFile (FTGLfont *font, const char *path) |
| Attach auxilliary file to font e.g. | |
| int | ftglAttachData (FTGLfont *font, const unsigned char *data, size_t size) |
| Attach auxilliary data to font, e.g. | |
| int | ftglSetFontCharMap (FTGLfont *font, FT_Encoding encoding) |
| Set the character map for the face. | |
| unsigned int | ftglGetFontCharMapCount (FTGLfont *font) |
| Get the number of character maps in this face. | |
| FT_Encoding * | ftglGetFontCharMapList (FTGLfont *font) |
| Get a list of character maps in this face. | |
| int | ftglSetFontFaceSize (FTGLfont *font, unsigned int size, unsigned int res) |
| Set the char size for the current face. | |
| unsigned int | ftglGetFontFaceSize (FTGLfont *font) |
| Get the current face size in points (1/72 inch). | |
| void | ftglSetFontDepth (FTGLfont *font, float depth) |
| Set the extrusion distance for the font. | |
| void | ftglSetFontOutset (FTGLfont *font, float front, float back) |
| Set the outset distance for the font. | |
| void | ftglSetFontDisplayList (FTGLfont *font, int useList) |
| Enable or disable the use of Display Lists inside FTGL. | |
| float | ftglGetFontAscender (FTGLfont *font) |
| Get the global ascender height for the face. | |
| float | ftglGetFontDescender (FTGLfont *font) |
| Gets the global descender height for the face. | |
| float | ftglGetFontLineHeight (FTGLfont *font) |
| Gets the line spacing for the font. | |
| void | ftglGetFontBBox (FTGLfont *font, const char *string, int len, float bounds[6]) |
| Get the bounding box for a string. | |
| float | ftglGetFontAdvance (FTGLfont *font, const char *string) |
| Get the advance width for a string. | |
| void | ftglRenderFont (FTGLfont *font, const char *string, int mode) |
| Render a string of characters. | |
| FT_Error | ftglGetFontError (FTGLfont *font) |
| Query a font for errors. | |
|
|
|
|
||||||||||||||||
|
Attach auxilliary data to font, e.g. font metrics, from memory. Note: not all font formats implement this function.
|
|
||||||||||||
|
Attach auxilliary file to font e.g. font metrics. Note: not all font formats implement this function.
|
|
||||||||||||||||
|
Create a custom FTGL font object.
|
|
|
Destroy an FTGL font object.
|
|
||||||||||||
|
Get the advance width for a string.
|
|
|
Get the global ascender height for the face.
|
|
||||||||||||||||||||
|
Get the bounding box for a string.
|
|
|
Get the number of character maps in this face.
|
|
|
Get a list of character maps in this face.
|
|
|
Gets the global descender height for the face.
|
|
|
Query a font for errors.
|
|
|
Get the current face size in points (1/72 inch).
|
|
|
Gets the line spacing for the font.
|
|
||||||||||||||||
|
Render a string of characters.
|
|
||||||||||||
|
Set the character map for the face.
|
|
||||||||||||
|
Set the extrusion distance for the font. Only implemented by FTExtrudeFont.
|
|
||||||||||||
|
Enable or disable the use of Display Lists inside FTGL.
|
|
||||||||||||||||
|
Set the char size for the current face.
|
|
||||||||||||||||
|
Set the outset distance for the font. Only FTOutlineFont, FTPolygonFont and FTExtrudeFont implement front outset. Only FTExtrudeFont implements back outset.
|
1.4.6