diff options
author | 2014-10-29 07:53:24 -0700 | |
---|---|---|
committer | 2014-10-29 07:53:24 -0700 | |
commit | f8c2feffd68b3262f3c039ec1bd517c5f6cc9e4c (patch) | |
tree | e1fb657f6ae07af9873e017963c227eaa5963c35 | |
parent | af58b5fcba23f5cc395ad64642b46504bd181eac (diff) |
scale xmin/xmax etc in fontmetrics
BUG=skia:
Review URL: https://codereview.chromium.org/690533004
-rw-r--r-- | src/ports/SkFontHost_FreeType.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp index 9acabbb5c2..b429f592e1 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; } |