A String can be drawn like this:
@Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g.create(); try { g2d.setColor(Color.BLACK); g2d.setFont(new Font("Serif", Font.PLAIN, 12));
The problem is that if I do g2d.setFont(new Font("Arial", Font.PLAIN, 12)); - Japanese characters are not visible, just squares:

And if I set the font as g2d.setFont(new Font("Serif", Font.PLAIN, 12)); - everything works fine:

For example, in MS WordPad, characters are visible if the Arial font is selected:

But I want to use the font Arial . Maybe I need to discover a Japanese character and switch to a different font, and then again?
source share