Merge branch 'next' of https://github.com/openfl/lime into text-harfbuzz

Conflicts:
	lime/graphics/Font.hx
	project/include/graphics/Font.h
	project/src/ExternalInterface.cpp
	project/src/graphics/Font.cpp
This commit is contained in:
MattTuttle
2014-08-04 09:51:51 -05:00
77 changed files with 4960 additions and 2533 deletions

View File

@@ -4,8 +4,12 @@
#include <hx/CFFI.h>
#include <list>
#include <graphics/ImageBuffer.h>
#ifdef LIME_FREETYPE
#include <ft2build.h>
#include FT_FREETYPE_H
#endif
namespace lime {
@@ -22,20 +26,24 @@ namespace lime {
FT_Pos height;
} GlyphInfo;
class Font {
public:
Font (const char *fontFace);
void LoadGlyphs (const char *glyphs);
void LoadRange (unsigned long start, unsigned long end);
void SetSize (size_t size);
value RenderToImage (Image *image);
value RenderToImage (ImageBuffer *image);
#ifdef LIME_FREETYPE
FT_Face face;
#else
void* face;
#endif
private:
@@ -44,7 +52,6 @@ namespace lime {
std::list<GlyphInfo> glyphList;
size_t mSize;
};