Repository navigation
Commit e82eb48
Set display density on prepared text layout paint (#59213)
Summary:
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
Differential Revision: D1261983431 parent f1f516e commit e82eb48
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