mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 04:36:26 +00:00
Android 12+ system "Bold text" sets Configuration.fontWeightAdjustment (+300). TextView applies that weight increase at draw time to text without an explicit fontWeight or fontFamily, while React Native 0.86.3's TextLayoutManager measures the text unbolded. The wider drawn glyphs overflow the measured box and clip trailing words, characters, and lines app-wide (#4057, #10152, #10850). Add an Android Expo config plugin that overrides MainActivity.attachBaseContext to zero fontWeightAdjustment on an empty sparse Configuration(), so measurement and drawing agree while unrelated configuration fields (uiMode, densityDpi, orientation, screenWidthDp, fontScale, locales) continue updating across onConfigurationChanged and compose cleanly with PaseoDisplayMetrics (#9995). Paseo's own bold styles (Markdown **bold**, headings, bold labels) remain bold. Co-authored-by: JustinJoshi <JustinJoshi@proton.me>