Jump to content
We've recently updated our Privacy Statement, available here ×

Why are Hindi Fonts not rendered correctly?


neha.pateliya25

Recommended Posts

Hindi HALANT Letters(Half Letter) are not printing correctly when creating pdf using Java.

eg : रक्त is printing as रक् त , हिन्दी is printing as हिन् दी. 

I am setting JRProperties for pdf fonts: 

    JRProperties.setProperty("net.sf.jasperreports.default.pdf.font.name", JASPER_PDF_FONT_FILE);
   JRProperties.setProperty("net.sf.jasperreports.default.pdf.encoding","Identity-H");
   JRProperties.setProperty("net.sf.jasperreports.default.pdf.embedded","true");
 
Before passing string in parameters , parsing it using IndicLigaturizer
   public static String TEST = "रक्त  हिन्दी महेंद्र";
   IndicLigaturizer g = new DevanagariLigaturizer();
   String processed = g.process(TEST);

But Letters are not printing as passed in parameters

 

Link to comment
Share on other sites

  • 2 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...