Open MayankFawkes opened 6 months ago
I'm not 100% sure, but I think this problem is caused by combine 2 letters in to one letters. This problem is more specific to the language than the gopdf lib that tries to act as a simple library for generating PDF will do.
And I've seen a similar solution in Arabic: they take the string through a conversion function before sending it to gopdf.
pdf.Text(reverseString(goarabic.ToGlyph("الايام السبعة")))
I don't think do that Arabic thing work with Hindi both are completely different
I don't mean that goarabic can be used in Hindi. What I mean is that the problem arises the same way as in Arabic, where letters are changed or combined depending on the preceding letter. What you should do is write a character converter similar to goarabic but in hindi.
yeah i am looking for something like that i found go-text/typesetting but not sure if we can use it or not or how can we use it so i made issue there https://github.com/go-text/typesetting/issues/159 lets see
Incorrent rendering Hindi fonts https://hindi-fonts.com/fonts/mangal-regular
Output
Expected