Reputation: 49
I upgraded NetBeans from Version 11 to 15. Version 15 is not displaying Hindi characters.
But Version 15 displays other language characters:
Under options, I have the same Fonts & Colors settings defined as Version 11.
Does anyone know how to fix this problem?
Thanks,
Brandon
Upvotes: 1
Views: 507
Reputation: 17353
If you set the font for the NetBeans Edit window to Unifont using Tools > Options > Fonts & Colors > Font then it will render Latin, Japanese and Hindi characters. You don't specify the language(s) you are using, but here is a trivial sample application in Java:
package pkg;
public class HindiJapanese {
public static void main(String[] args) { // Edit window uses Unifont font.
System.out.println("Hello World!");
System.out.println("Hello world in Hindi: नमस्ते दुनिया");
System.out.println("Hello world in Japanese: こんにちは世界");
}
}
You will also need to set the font for the Output window to Unifont using Tools > Options > Miscellaneous > Output > Font before running that code:
Update: Everything still works when using JDK 19 and Arial Unicode MS font, although that font is not fixed width:
Notes:
Upvotes: 1