Skip to content

Commit b8bb8ac

Browse files
author
Xavier Ducrohet
committed
Fix the layoutlib Paint.set(Paint) method.
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: I6d8d1bf86f0d77d088f60ad81c71dd3ebab727b0
1 parent 1726cf2 commit b8bb8ac

File tree

1 file changed

+2
-0
lines changed
  • tools/layoutlib/bridge/src/android/graphics

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ public void set(Paint src) {
283283
mStyle = src.mStyle;
284284
mFlags = src.mFlags;
285285

286+
updateFontObject();
287+
286288
super.set(src);
287289
}
288290
}

0 commit comments

Comments
 (0)