Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

samir_maharjan's avatar

Dompdf/ TCPDF not showing nepali character properly

I am trying to genetrate pdf for nepali content. I tried to use Dompdf and TCPDF. Nepali characters are not showing properly as half letters are not displayed in rignt manner. I tried freesans, devnagari, and PREETI fonts

0 likes
1 reply
shariff's avatar

Did you added fonts? which will load nepali content? You need have custom fonts to do that. You can check https://stackoverflow.com/questions/12581156/custom-fonts-for-dompdf

Please or to participate in this conversation.