I am working on a text editor for Malayalam in Java.
Unicode font does not display correctly in Swing - JTextArea . Combination of characters. Instead of mixing two characters, the text area is displayed separately. Both swings and fonts support these characters, but it does not work in key combinations. Although a supported font is used. For instance:
What is necessary
ക്രാ
What gets
്രക
code
jButton69.setFont(new java.awt.Font("Meera", 0, 12)); // NOI18N jButton69.setText(" ്ര"); jTextArea1.append(jButton69.getText());
EDIT: (Additional info from author comments):
When combining the three characters ക (\ u0D15) + ് (\ u0D4D) + ര (\ u0D30), I get ര്ക instead of ക്ര.
Malayalam language, font - Meera
user2085779
source share