Add Font.getTextMetrics, rename TextLayout->TextEngine

This commit is contained in:
Joshua Granick
2015-03-09 08:09:09 -07:00
parent a406401848
commit 0f6f022dab
13 changed files with 380 additions and 108 deletions

View File

@@ -3,6 +3,7 @@
#include <graphics/ImageBuffer.h>
#include <text/GlyphSet.h>
#include <utils/Resource.h>
#include <hx/CFFI.h>
#include <list>
@@ -11,9 +12,6 @@
namespace lime {
class Image;
typedef struct {
unsigned long codepoint;
@@ -37,6 +35,7 @@ namespace lime {
int GetAscender ();
int GetDescender ();
wchar_t *GetFamilyName ();
value GetGlyphMetrics (GlyphSet *glyphSet);
int GetHeight ();
int GetNumGlyphs ();
int GetUnderlinePosition ();