Index: src/ports/SkFontHost_FreeType.cpp |
=================================================================== |
--- src/ports/SkFontHost_FreeType.cpp (revision 11779) |
+++ src/ports/SkFontHost_FreeType.cpp (working copy) |
@@ -605,7 +605,7 @@ |
FT_Fixed advances[128]; |
int advanceCount = 128; |
if (gID + advanceCount > face->num_glyphs) |
- advanceCount = face->num_glyphs - gID + 1; |
+ advanceCount = face->num_glyphs - gID; |
getAdvances(face, gID, advanceCount, FT_LOAD_NO_SCALE, |
advances); |
for (int i = 0; i < advanceCount; i++) { |