arta-tm / fa-normalize

Normalize Persian text for web graphics like svg and canvas https://arta-tm.github.io/fa-normalize/
MIT License
0 stars 0 forks source link

Bug with some fonts #33

Open hamid0740 opened 2 years ago

hamid0740 commented 2 years ago

Hello, this issue that I'm submitting is not related to your library, because it works great. The problem gets in, when used with svg generators like text-to-svg. Some fonts use Contextual Alternatives (calt) to change the distance between some conflicting letters. Like "یخ". So as the output of you library is not recognized as the font to use the CALT, those letters will have conflicts.

TheServat commented 1 year ago

Hi, can you give me an example?

hamid0740 commented 1 year ago

Hello, At the moment I don't have access, but you may use Estedad font to generate a svg of text "سیخ" with svg-to-png. You'll see the conflict of dots and the letter "خ", which is occurred because of CALT not being applied. This is also the quote of what you've said before: See