image fonts now print from the upper left like truetype fonts do (fixes #100)

This commit is contained in:
Bill Meltsner
2010-11-09 19:29:00 -05:00
parent 54f7a83662
commit 500e0f1417
2 changed files with 19 additions and 6 deletions
+8
View File
@@ -38,12 +38,20 @@ namespace opengl
class Font : public Object, public Volatile
{
private:
enum FontType
{
FONT_TRUETYPE = 1,
FONT_IMAGE,
FONT_UNKNOWN
};
int height;
float lineHeight;
float mSpacing; // modifies the spacing by multiplying it with this value
Glyph ** glyphs;
GLuint list; // the list of glyphs, for quicker drawing
FontType type;
public:
static const unsigned int MAX_CHARS = 256;