googlefonts / Gulzar

Nastaliq font
https://gulzarfont.org
SIL Open Font License 1.1
38 stars 9 forks source link

We need a new dot-collision avoidance mechanism #14

Closed simoncozens closed 2 years ago

simoncozens commented 2 years ago

The existing system is pretty basic; it shifts all the dots by the same amount. We need a system which takes the width of the rasm glyph into account before deciding whether or not the shift is needed. e.g. with

shape

the shift in the ‍چ‍ is not enough, but the shift in the ب‍ is too much!

BornaIz commented 2 years ago

Agreed. I think we might be able to solve this by moving the dots vertically rather than horizontally. In several cases, dots are too close to the rasm glyphs and once they are moved further away there will be more room for other dots which could be positioned on different horizontal levels. Similar to the following

Screenshot 2021-08-16 at 12 04 04