libgdxhindibitmap-fonts

How to render Hindi Text in Libgdx?


How to render Hindi text in libgdx using mangal.ttf or any other font. Square boxes are coming when try to print hindi text.


Solution

  • We can use "Chanakya" font for render the Hindi Text in correct way. Download the chanyaka.ttf from hera :

    http://indiatyping.com/index.php/download/199-chanakya-font

    After installing the font . You should encode your Hindi text using the coverter :

    http://indiatyping.com/index.php/font-converter/unicode-to-chanakya-font-converter

    Once converted the text, simply copy it to your destination and you should be good to go!

    Enjoy :)