#ifndef _FONT_H_ #define _FONT_H_ #include #include "platform.h" #include GLHEADER #include #include FT_FREETYPE_H //A TrueType Font renderer that uses FreeType and OpenGL. //The library is automatically initialized when it's needed. class Font { public: static void initLibrary(); Font(std::string path, int size); ~Font(); FT_Face face; //contains sizing information for every glyph. struct charPosData { int texX; int texY; int texW; int texH; float advX; //! 1.0 if the font would be to big for the texture std::string mPath; int mSize; }; #endif