Index: src/fonts/SkTestScalerContext.cpp |
diff --git a/src/fonts/SkTestScalerContext.cpp b/src/fonts/SkTestScalerContext.cpp |
index 194cd0907c21aeb48b157bd00e5bc7a665bad66b..28b53b3a15e2445485140f4ad8f280e3381dd33d 100644 |
--- a/src/fonts/SkTestScalerContext.cpp |
+++ b/src/fonts/SkTestScalerContext.cpp |
@@ -148,9 +148,8 @@ SkAdvancedTypefaceMetrics* SkTestTypeface::onGetAdvancedTypefaceMetrics( |
info->fFontName.set(fTestFont->fName); |
info->fType = SkAdvancedTypefaceMetrics::kOther_Font; |
info->fFlags = SkAdvancedTypefaceMetrics::kEmpty_FontFlag; |
- info->fLastGlyphID = static_cast<uint16_t>(fTestFont->fCharCodesCount - 1); |
- info->fEmSize = 0; |
info->fLastGlyphID = SkToU16(onCountGlyphs() - 1); |
+ info->fEmSize = 0; |
info->fStyle = 0; |
info->fItalicAngle = 0; |
info->fAscent = 0; |