Skip to content

Commit 2325e33

Browse files
fix(android): remove extra font padding by default (#10771)
1 parent 96733c2 commit 2325e33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/ui/text-base/index.android.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ export class TextBase extends TextBaseCommon {
186186
super.initNativeView();
187187
initializeTextTransformation();
188188
const nativeView = this.nativeTextViewProtected;
189+
190+
// Fix for custom font over-height issue on Android
191+
// Disable font padding to prevent extra spacing around text
192+
nativeView.setIncludeFontPadding(false);
193+
189194
this._defaultTransformationMethod = nativeView.getTransformationMethod();
190195
this._defaultMovementMethod = nativeView.getMovementMethod();
191196
this._minHeight = nativeView.getMinHeight();

0 commit comments

Comments
 (0)