From 79c276e4fd93d9c9fd57a45bc6929c48e4415b2f Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 29 Oct 2014 13:43:50 -0700 Subject: scale xmin and xmax for FontMetrics BUG=skia: Review URL: https://codereview.chromium.org/685153004 --- src/ports/SkFontHost_FreeType.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ports') diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp index 9acabbb5c2..f166e0b191 100644 --- a/src/ports/SkFontHost_FreeType.cpp +++ b/src/ports/SkFontHost_FreeType.cpp @@ -1495,8 +1495,8 @@ 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->fXMin = xmin * scale; + metrics->fXMax = xmax * scale; metrics->fXHeight = x_height; metrics->fCapHeight = cap_height; metrics->fUnderlineThickness = underlineThickness * scale; -- cgit v1.2.3