I am able to write Hindi, Urdu in JTextPane
, but not able to write other Indian regional languages in text pane. I have also downloaded the font for these languages, but it doesn't work.
How to write Indian regional languages like Gujrati, Punjabit etc in JTextPane
?
UPDATE :
A piece of code as requested :
public class NewClass {
public static void main(String args[]) {
JFrame j = new JFrame("Hello!");
j.setSize(200, 200);
JTextPane k = new JTextPane();
k.setFont(new Font("Shree-Guj-0768W", Font.PLAIN, 17));
j.add(k); j.setVisible(true);
}
}
I have set the gujrati(a Language) font in jtextpane, the existing content appear in gujrati,but when i write in the jtextpane boxes appears. Can we have multiple indian regional languages in same Jtextpane?