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