Repository navigation
Commit 6f6fa0a
Set display density on prepared text layout paint (#59213)
Summary:
Pull Request resolved: #59213
When prepared text layout is enabled, PreparedLayoutTextView draws the cached Layout directly. That Layout is built with a fresh TextPaint that never received the display density, so custom decoration drawing that scales with paint.density rendered wrong: the DOUBLE underline/linethrough gap (thickness + 2dp) collapsed to zero and the two strokes merged into one solid band.
Changelog: [Android][Fixed] - Fix double text decorations rendering as a solid band when prepared text layout is enabled
Reviewed By: christophpurrer
Differential Revision: D126198343
fbshipit-source-id: 240f3c79fbef2c08995533104c56d345c8b511551 parent 79adf34 commit 6f6fa0a
1 file changed
Lines changed: 1 addition & 0 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
| 1110 | + | |
1110 | 1111 | | |
1111 | 1112 | | |
1112 | 1113 | | |
| |||
0 commit comments