summaryrefslogtreecommitdiffstats
path: root/skia/ports
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ports')
-rw-r--r--skia/ports/SkFontHost_FreeType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/skia/ports/SkFontHost_FreeType.cpp b/skia/ports/SkFontHost_FreeType.cpp
index 172e296..43b6295 100644
--- a/skia/ports/SkFontHost_FreeType.cpp
+++ b/skia/ports/SkFontHost_FreeType.cpp
@@ -837,7 +837,7 @@ void SkScalerContext_FreeType::generateFontMetrics(SkPaint::FontMetrics* mx, SkP
my->fVDMXMetricsValid = false;
// Attempt to parse the VDMX table to get exact metrics
- unsigned pelsize = fScaleY >> 16;
+ unsigned pelsize = (fScaleY + 0x8000) >> 16;
int ymax, ymin;
if (SkFontHost_VDMX_Parse(&ymax, &ymin, face, pelsize)) {
my->fVDMXMetricsValid = true;