-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
IBM Plex Sans Arabic issue with Tashkeel #7611
Comments
@yanone could you take a look? |
This is a problem that exists with many Arabic fonts, even my own (work-in-progress). These fonts have a ligature for الله which already includes tashkeel in its presentation which are not typed, so a user just types That's of course problematic. In the issue above, the typed text itself contains tashkeel, which are then applied on top of the ligature that already contains tashkeel. The easiest solution would be to remove the composed ligature from the font, requiring users to explicitly apply tashkeel. But this has not been the common practice in font-making. The common practice until now has been to type plain Another solution is to correctly apply OpenType feature code. In my own font (just now for testing) I've been able to eliminate the tashkeel collisions by removing the
Which means that, as soon as marks are involved, the ligature will not be substitued. The results speaks for itself: Before we move on to fix the issue in any of the fonts, I would like to proceed with defining a Fontbakery check for this. I would make this check into a shaping check, counting the amount of glyphs after shaping. @khaledhosny @simoncozens, what are your thoughts on this? |
See IBM/plex#407 |
My thoughts are (a) it's a good candidate for a shaperglot check, and (b) https://www.unicode.org/notes/tn46/tn46-1.pdf |
@simoncozens Is such a check implementable using the current set of shaperglot instructions? If so, how would you implement it? Khaled's idea in the linked thread of offering two ligatures is valid (tho Bold Monday's implementation of putting all marks on the second ل is surely wrong), as is offering just one ligature and ignoring it as soon as marks are present. At least I don't see how this can be solved using a static shaperglot test definition. I think this would be a dynamic check written in code. Then of course it makes no difference whether it's in FB or shaperglot, with the latter being the better host. |
FWIW, this issue is fixed upstream. So updating the version on GF should fix the issue. |
Taken from the upstream repo https://github.com/googlefonts/plex at commit googlefonts/plex@b290a00. Resolves #7611
Taken from the upstream repo https://github.com/googlefonts/plex at commit googlefonts/plex@e80bf92. Resolves #7611
Specify the font name in title with a short description of the bug.
Please report any issue related to Noto fonts here.
Report any issue with Google Icon/Symbols here
Describe the bug
When you type the word اللَّهُ it get's presented in a wrong way like this
To Reproduce
Type the word اللَّهُ
Expected behavior
It should appear as it is appearing above
Screenshots
Added
Additional context
N/A
The text was updated successfully, but these errors were encountered: