matplotlib/mplcairo

Printing of Tamil language characters

HitheshSankararaman opened this issue · 4 comments

Output of mplcairo.get_versions()
{'python': '3.9.12 (main, Jun 1 2022, 11:38:51) \n[GCC 7.5.0]', 'mplcairo': '0.5', 'matplotlib': '3.5.3', 'cairo': '1.16.0', 'freetype': '2.11.0', 'pybind11': '2.10.0', 'raqm': None, 'hb': None}

c907b492-c814-43e6-8bf4-7657926eff41

The tamil words in x-axis are not printed correctly.
Eg:- சொல்லுங்க

  1. Will mplcairo resolve this ?

It will, but you need to also have raqm installed, which is currently not the case (get_versions says 'raqm': None).

It will, but you need to also have raqm installed, which is currently not the case (get_versions says 'raqm': None).

I installed raqm using sudo apt-get install libraqm-dev . Still it shows like this . Any pointers ?

What does get_versions return? I assume you are on ubuntu or debian?
Can you try import ctypes; ctypes.CDLL("libraqm.so.0")?

The error got solved . Needed to update,upgrade and restart the machine . Once I did I got the required output. Thank you so much.