Lime console fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user