diff options
author | reed <reed@chromium.org> | 2014-10-29 13:43:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-29 13:43:50 -0700 |
commit | 79c276e4fd93d9c9fd57a45bc6929c48e4415b2f (patch) | |
tree | 5e637d0e7b0b239ec7710235dc806fd230bb599c /src/ports | |
parent | c96aa64246bcd0e93cda16d4d0358345515cbfd5 (diff) |
scale xmin and xmax for FontMetrics
BUG=skia:
Review URL: https://codereview.chromium.org/685153004
Diffstat (limited to 'src/ports')
-rw-r--r-- | src/ports/SkFontHost_FreeType.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |