Index: src/ports/SkFontHost_FreeType.cpp |
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp |
index 9acabbb5c26dbc688464d750bd044713b9c1f163..b429f592e1c1b791229ce32e05593dc228c9abf0 100644 |
--- a/src/ports/SkFontHost_FreeType.cpp |
+++ b/src/ports/SkFontHost_FreeType.cpp |
@@ -1495,10 +1495,10 @@ void SkScalerContext_FreeType::generateFontMetrics(SkPaint::FontMetrics* metrics |
metrics->fBottom = ymin * scale; |
metrics->fLeading = leading * scale; |
metrics->fAvgCharWidth = avgCharWidth * scale; |
- metrics->fXMin = xmin; |
- metrics->fXMax = xmax; |
- metrics->fXHeight = x_height; |
- metrics->fCapHeight = cap_height; |
+ metrics->fXMin = xmin * scale; |
+ metrics->fXMax = xmax * scale; |
+ metrics->fXHeight = x_height * scale; |
+ metrics->fCapHeight = cap_height * scale; |
metrics->fUnderlineThickness = underlineThickness * scale; |
metrics->fUnderlinePosition = underlinePosition * scale; |
} |