From 80e62ac61c297452c003919f71c4dcd7063d1b43 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Fri, 16 Jul 2010 16:46:39 -0700 Subject: Fix the layoutlib Paint.set(Paint) method. Do not merge. It would change the text rendering info but not recompute the Java Font objects. The effect is a broken font rendering in the EditText (which use this method to copy some Paint object before using the copy for the actual drawing) Change-Id: I9e7fbf9bd57b421fd793876a6de4ade1ecac372d --- tools/layoutlib/bridge/src/android/graphics/Paint.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/layoutlib/bridge/src') diff --git a/tools/layoutlib/bridge/src/android/graphics/Paint.java b/tools/layoutlib/bridge/src/android/graphics/Paint.java index 619ab30..d13b5fe 100644 --- a/tools/layoutlib/bridge/src/android/graphics/Paint.java +++ b/tools/layoutlib/bridge/src/android/graphics/Paint.java @@ -283,6 +283,8 @@ public class Paint extends _Original_Paint { mStyle = src.mStyle; mFlags = src.mFlags; + updateFontObject(); + super.set(src); } } -- cgit v1.1