Adding loadRange to Font

This commit is contained in:
MattTuttle
2014-07-30 17:08:16 -05:00
parent 83bb9d9b66
commit 200e953641
6 changed files with 157 additions and 68 deletions

View File

@@ -17,6 +17,7 @@ namespace lime {
typedef struct {
unsigned long codepoint;
unsigned int size;
FT_UInt index;
FT_Pos height;
@@ -29,13 +30,16 @@ namespace lime {
public:
Font (const char *fontFace);
void LoadGlyphs (int size, const char *glyphs);
value createImage (Image *image);
void LoadGlyphs (size_t size, const char *glyphs);
void LoadRange (size_t size, unsigned long start, unsigned long end);
value renderToImage (Image *image);
FT_Face face;
private:
bool InsertCodepoint (unsigned long codepoint, size_t size);
std::list<GlyphInfo> glyphList;