aliftype / mada

Mada (مدى) is a geometric, low-contrast Arabic typeface
SIL Open Font License 1.1
61 stars 8 forks source link

Broken diacritics #25

Closed chichilatte closed 7 years ago

chichilatte commented 7 years ago

Love this font but it seems like it's screwing up certain diacritics. Here's an example in Google Docs...

And how it should look (using Verdana here)...

The problem is the little diagonal accent called a kasra, utf16 char \u0650. I'm not sure if other accents also have problems.


Here's the selectable text if that's any help...

الرِّياضَة

Also: Looking around, i get the same problem in Google Fonts and Adobe AIR. In LibreOffice the kasra doesn't show at all.

chichilatte commented 7 years ago

How would one go about fixing this i wonder, e.g. what software, good arabic accent info, etc.?

khaledhosny commented 7 years ago

The positioning is by design; I subscribe to the school that places the kasra under the base character regardless of the presence or absence of shadda. If this can help you, it shouldn’t be hard to have a stylistic set font feature that enables alternate placement.

chichilatte commented 7 years ago

Ahh ok, that's interesting. Our translator (based in Syria) thought it was a rendering error. I'll get back to her with your comment. Are there any other similar accent choices you've made in the font, do you think?

It would be great if the kasra under the shadda could be added, thank you, but I'm not sure if stylistic sets are supported on the platform we're developing for (Adobe AIR). I suspect they're not, googling comes up empty :(

Maybe an alternative font family (seems like overkill!)?

khaledhosny commented 7 years ago

The same happens with kasratan (double kasra). I can add the stylistic set and you can use a tool like pyftfeatfreeze to create an alternate font family with the stylistic set being the default.

chichilatte commented 7 years ago

Wow Khaled you are amazing. Please do add the stylistic set, really appreciated.

khaledhosny commented 7 years ago

Please test and let me know if you have any issues.

chichilatte commented 7 years ago

Yes! Black is old, blue is new...

Note for anyone doing something similar: Here's what I had to do in the terminal to get pyftfeatfreeze to work:

cd /path/to/your/pyftfeatfreeze/folder
chmod gou+x pyftfeatfreeze.py
sudo pip install fonttools
./pyftfeatfreeze.py -f 'ss03' -S -U SS03 YourMadaFolder/Mada-Regular.otf YourMadaFolder/Mada-RegularSS03.otf

(I added the S and U switches to add "SS03" to the font name, just so i could compare the old and new versions easily)

Thanks again Khaled!