mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
image fonts now print from the upper left like truetype fonts do (fixes #100)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user