Lime console fixes

This commit is contained in:
Joshua Granick
2014-08-05 13:20:25 -07:00
parent f58fdc1d2c
commit 3384f0029c
11 changed files with 519 additions and 538 deletions

View File

@@ -13,19 +13,30 @@
namespace lime {
class Image;
#ifdef LIME_FREETYPE
typedef struct {
unsigned long codepoint;
size_t size;
FT_UInt index;
FT_Pos height;
} GlyphInfo;
#else
typedef struct {
unsigned long codepoint;
size_t size;
int index;
int height;
} GlyphInfo;
#endif
class Font {
@@ -38,23 +49,23 @@ namespace lime {
void LoadRange (unsigned long start, unsigned long end);
void SetSize (size_t size);
value RenderToImage (ImageBuffer *image);
#ifdef LIME_FREETYPE
FT_Face face;
#else
void* face;
#endif
private:
bool InsertCodepoint (unsigned long codepoint);
std::list<GlyphInfo> glyphList;
size_t mSize;
};
}