I am trying to generate a pdf file which contains different languages at the same time(like English, French, Chinese, Malay, Thai etc)using PHP and tcpdf. But as I tried, it work for only some languages. Font-family I used is freesans. Can I anybody help me, how can I achieve this?
Asked
Active
Viewed 287 times
1 Answers
0
Noto is a Google free font which is designed for more than 800 languages. Here is a Guidelines for Using Noto. And here is a stackoverflow post for how to add custom fonts in tcpdf.

brian17han
- 1,239
- 1
- 8
- 15
-
thanks for the reply and sorry for the delay in my response. Tried the fonts but not able to display malayalam font(notosansmalayalam) correctly some characters are overlapping. – Dev Dec 13 '17 at 11:51
-
@Dev sorry I can't read Malayalam, ;-), but could you try to play with the css attribute `letter-spacing`? – brian17han Dec 14 '17 at 20:32
-
I already tried that option but no luck, now I am trying to do in mpdf instead tcpdf :) anyway thanks @brian17han. – Dev Dec 19 '17 at 04:00