SK_USE_SCALED_FONTMETRICS for correct scaling
related blink change:
https://codereview.chromium.org/691133002
Review URL: https://codereview.chromium.org/692083002
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 9acabbb..c7c77ff 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -1495,8 +1495,14 @@
metrics->fBottom = ymin * scale;
metrics->fLeading = leading * scale;
metrics->fAvgCharWidth = avgCharWidth * scale;
+#ifdef SK_USE_SCALED_FONTMETRICS
+ // new correct behavior. need chrome to define this, and then we can remove the else code
+ metrics->fXMin = xmin * scale;
+ metrics->fXMax = xmax * scale;
+#else
metrics->fXMin = xmin;
metrics->fXMax = xmax;
+#endif
metrics->fXHeight = x_height;
metrics->fCapHeight = cap_height;
metrics->fUnderlineThickness = underlineThickness * scale;