-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buggy Hebrew Unicode Characters -- sometimes cause app crash #11471
Comments
This is also a pressing issue for our development team. Does anyone have any ideas? |
Stack Trace from some of the crashing:
|
Do you've any updates on this. I also stumbled upon this error. I've been facing this with Urdu characters, with certain custom font ie Jameel Noori Nastaleeq. It is CoreText error while creating justified lines. I've following line from CoreText which causes this error:
and the text that can cause this error is:
It has something to do with Kerning of the characters. Somehow CoreText fails to estimate the spacing for the characters in a justified line. Native If an attempt is made to set the above mentioned font to UITextView containing this specific text in InterfaceBuilder, it causes the Xcode to crash. The native TextEditor app on Mac also goes bananas when it finds the above mentioned text in any paragraph in that certain font. |
That summarizes the problem perfectly. In the end we couldn't find a code solution forward on this so we ended up modifying the font we were using -- essentially using fontforge we created a bunch of custom ligature glyphs in the private use area of the unicode block and called those, effectively bypassing all the various positioning kerning rules that seemed to be mucking up RN. You can see the work we did by comparing these two files in font forge or the equivalent: If you manage to find another path forward do let us know. |
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally! If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution. |
Description
Current versions of React Native (at least 0.39.2 and below) don't appear to properly display Hebrew Unicode Characters when cantillation markers (u0591-u05AF) are included under certain conditions.
This appears when using fonts that properly display these characters (Taamey Frank, Ezra SIL, SBL Hebrew, Shofar, Keter YG, etc)
It does not appear to occur with fonts that incorrectly place these characters.
Reproduction
This sample project demonstrates the issue in the most vanilla way possible (not possible to reproduce on rnplay.org) due to font requirements:
https://github.com/rneiss/hebrewTestProject/
Tested in simulator on iPhone7 Plus (10.2) but bug has been seen on other iOS devices.
Solution
Glyphs should render properly instead of producing unicode question marks.
Additional Information
The text was updated successfully, but these errors were encountered: