Minor tweaks

This commit is contained in:
Joshua Granick
2015-03-12 22:54:43 -07:00
parent 1973d5b89e
commit d08c0b7b47

View File

@@ -783,7 +783,7 @@ namespace lime {
int Font::RenderGlyph (int index, ByteArray *bytes, int offset) {
FT_Load_Glyph ((FT_Face)face, index, FT_LOAD_FORCE_AUTOHINT | FT_LOAD_DEFAULT);
if (FT_Load_Glyph ((FT_Face)face, index, FT_LOAD_FORCE_AUTOHINT | FT_LOAD_DEFAULT) == 0) {
if (FT_Render_Glyph (((FT_Face)face)->glyph, FT_RENDER_MODE_NORMAL) == 0) {
@@ -823,6 +823,8 @@ namespace lime {
}
}
return 0;
}
@@ -849,8 +851,12 @@ namespace lime {
}
if (count > 0) {
*(bytes->Bytes ()) = count;
}
return totalOffset;
}