Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: src/ports/SkFontHost_FreeType.cpp

Issue 686263002: Revert of scale xmin/xmax etc in fontmetrics (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontHost_FreeType.cpp
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index b429f592e1c1b791229ce32e05593dc228c9abf0..9acabbb5c26dbc688464d750bd044713b9c1f163 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -1495,10 +1495,10 @@
metrics->fBottom = ymin * scale;
metrics->fLeading = leading * scale;
metrics->fAvgCharWidth = avgCharWidth * scale;
- metrics->fXMin = xmin * scale;
- metrics->fXMax = xmax * scale;
- metrics->fXHeight = x_height * scale;
- metrics->fCapHeight = cap_height * scale;
+ metrics->fXMin = xmin;
+ metrics->fXMax = xmax;
+ metrics->fXHeight = x_height;
+ metrics->fCapHeight = cap_height;
metrics->fUnderlineThickness = underlineThickness * scale;
metrics->fUnderlinePosition = underlinePosition * scale;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698