mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix antialiasing for Facsimile on Android < 10 (#52069)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52069 Noticed an E2E tests against old emulator version showed aliased Text against Facsimile. This is because non-scratch-paint path does not explicitly enable anti-aliasing (like TextView does), older versions of Android don't enable by default, and `updateTextPaint()` no longer sets, after call to `paint.reset()` was removed. Changelog: [Internal] Reviewed By: javache Differential Revision: D76780749 fbshipit-source-id: 26f0de6d6558649fe08339f1ac91390bbd4cce3c
This commit is contained in:
1 parent
331fab0683
commit
ded4ae1f78
1 file changed
+1
-1
+1
-1
@@ -469,7 +469,7 @@ internal object TextLayoutManager {
|
||||
baseTextAttributes: TextAttributeProps,
|
||||
context: Context
|
||||
): TextPaint {
|
||||
val paint = TextPaint()
|
||||
val paint = TextPaint(TextPaint.ANTI_ALIAS_FLAG)
|
||||
updateTextPaint(paint, baseTextAttributes, context)
|
||||
return paint
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user