facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.2k stars 24.33k forks source link

Tibetan language text clipped on multiline texts with given line height #33704

Closed tiamed closed 1 year ago

tiamed commented 2 years ago

Description

Multiline text get clipped when

a. the line height is set to 1.6 times of the font size b. text content contains both simplified Chinese characters and Tibetan characters. c. more than one line inside Text

Screenshot_2022-04-24-18-54-52-060_host exp exponent

Version

0.64.3

Output of npx react-native info

System: OS: macOS 12.2.1 CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz Memory: 142.58 MB / 32.00 GB Shell: 3.3.1 - /usr/local/bin/fish Binaries: Node: 12.22.10 - ~/.nvm/versions/node/v12.22.10/bin/node Yarn: Not Found npm: 6.14.16 - ~/.nvm/versions/node/v12.22.10/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 30, 32 Build Tools: 29.0.2, 32.0.0, 32.1.0, 33.0.0 Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.3/13E113 - /usr/bin/xcodebuild Languages: Java: 1.8.0_312 - /usr/local/opt/openjdk@8/bin/javac npmPackages: @react-native-community/cli: Not Found react: ^17.0.1 => 17.0.2 react-native: ^0.64.3 => 0.64.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

System: Android 12

Font: mi-sans / noto-sans / noto-serif

Steps a. set the line height to 1.6 times of the font size b. text content contains both simplified Chinese characters and Tibetan characters. For example:

金珠(བཅིངས་འགྲོལ)就是解放的意思,玛(དམག)是兵的意思,姆应该是མི,人的意思

c. more than one line inside Text

Snack, code example, screenshot, or link to a repository

No response

tiamed commented 2 years ago

Tried android specific text style prop textAlignVertical, doesn't work

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 7 days with no activity.