LayoutLib: fix support for textScaleX.

Change-Id: I821191a40012e9727b4a3573d580483c3ae1de48
This commit is contained in:
Xavier Ducrohet
2011-10-04 19:39:18 -07:00
parent e5493f3115
commit d410bfb200

View File

@ -1166,7 +1166,7 @@ public class Paint_Delegate {
if (mTextScaleX != 1.0 || mTextSkewX != 0) {
// TODO: support skew
info.mFont = info.mFont.deriveFont(new AffineTransform(
mTextScaleX, mTextSkewX, 0, 0, 1, 0));
mTextScaleX, mTextSkewX, 0, 1, 0, 0));
}
info.mMetrics = Toolkit.getDefaultToolkit().getFontMetrics(info.mFont);