We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text rendering issues when applying 'Mangal' font on 'Hindi' Language text


I am trying to localise the PDF files. Basic approach is -
1. Extract text
2. Translate it in Hindi.
3. Replace English text with Hindi text.

So while replacing English text with Hindi by following way -
textFragment.Text = HindiText;
textFragment.TextState.Font = FontRepository.FindFont(“Mangal”);

English text gets replaced but it is not reordered properly. i.e. conjuncts are not forming.

e.g. - मूल्यांकन समिति string is rendered in pdf as in attached file.

Hi Ruchi,

Thanks for contacting support.

Please share the resource PDF and font files so that we can test the scenario in our environment. We are sorry for this inconvenience.

Mangal font comes with Windows OS by default.

And you can replace text of textFragment in any pdf file with Hindi string “मूल्यांकन समिति” to check the scenario.
My pdf file is attached, here in this file I am replaceing “Evaluation Committee” with “मूल्यांकन समिति” .

Hi Ruchi,

Thanks for sharing the details.

have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38018. We will
investigate this issue in details and will keep you updated on the status of a
correction. <o:p></o:p>

We apologize for your inconvenience.