PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
FontManager Class Reference

Public Types

enum  DefaultFont { DefaultTTF_Font =-1, DefaultRaster =0 }
 

Static Public Member Functions

static void init ()
 
static void quit ()
 
static PGE_Size textSize (QString &text, int fontID, int max_line_lenght=0, bool cut=false)
 
static int getFontID (QString fontName)
 
static GLuint getChar1 (QChar _x)
 
static GLuint getChar2 (QChar _x)
 
static QFont font ()
 
static void printText (QString text, int x, int y, int font=DefaultRaster, float Red=1.0, float Green=1.0, float Blue=1.0, float Alpha=1.0, int ttf_FontSize=14)
 
static void printTextTTF (QString text, int x, int y, int pointSize, QRgb color=qRgba(255, 255, 255, 255))
 
static void optimizeText (QString &text, int max_line_lenght, int *numLines=0, int *numCols=0)
 
static QString cropText (QString text, int max_symbols)
 
static void SDL_string_texture_create (QFont &font, QRgb color, QString &text, GLuint *texture, bool borders=false)
 
static void SDL_string_texture_create (QFont &font, PGE_Rect limitRect, int fontFlags, QRgb color, QString &text, GLuint *texture, bool borders=false)
 
static void SDL_string_render2D (GLuint x, GLuint y, GLuint *texture)
 
static GLuint TextToTexture (QString text, PGE_Rect rectangle, int alignFlags, bool borders=false)
 

Static Public Attributes

static QList< RasterFontrasterFonts
 Complete array of raster fonts.
 
static RasterFontrFont =NULL
 Default raster font.
 

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