I'm trying to render some Arabic sentences using your library along with the the synthetic text generation package. The problem is that I'm getting Arabic sentences with some gaps between the letters, please see my code and a screenshot below:
from arabic_reshaper import ArabicReshaper
configuration = {
'delete_harakat': True,
'support_ligatures': True,
'use_unshaped_instead_of_isolated': True,
}
reshaper = ArabicReshaper(configuration=configuration)
text = u' عام استقلال طهران المملكة العربية السعودية'
reshaped_text = reshaper.reshape(text)
bidi_text = get_display(reshaped_text)
generator = GeneratorFromStrings([bidi_text,],
fonts=["Amiri-Regular.ttf"], size=50, character_spacing=-1)
next(generator)[0]
Salam,
I'm trying to render some Arabic sentences using your library along with the the synthetic text generation package. The problem is that I'm getting Arabic sentences with some gaps between the letters, please see my code and a screenshot below:
Thanks