I am trying to include Hindi font using the font file mangal.ttf that i have kept on some file location. It was picking up this font earlier, but now all of a sudden, its not displaying any font on the resultant pdf. Dots are appearing instead of the characters. What could be the issue? please guide.
key = key.trim();
if(value.trim().equals("blank"))value="";
BaseFont unicode = BaseFont.createFont("html/fonts/mangal.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
form.addSubstitutionFont(unicode);
ArrayList<BaseFont> fl = new ArrayList<BaseFont>();
fl.add(unicode);
form.setSubstitutionFonts(fl);
form.setField(key,StringEscapeUtils.unescapeHtml(value));