Skip to content

Commit a11630f

Browse files
Xavier DucrohetAndroid (Google) Code Review
authored andcommitted
Merge "LayoutLib: fix support for textScaleX."
2 parents ac0757a + d410bfb commit a11630f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ private void updateFontObject() {
11661166
if (mTextScaleX != 1.0 || mTextSkewX != 0) {
11671167
// TODO: support skew
11681168
info.mFont = info.mFont.deriveFont(new AffineTransform(
1169-
mTextScaleX, mTextSkewX, 0, 0, 1, 0));
1169+
mTextScaleX, mTextSkewX, 0, 1, 0, 0));
11701170
}
11711171
info.mMetrics = Toolkit.getDefaultToolkit().getFontMetrics(info.mFont);
11721172

0 commit comments

Comments
 (0)