user2035598
user2035598

Reputation: 29

paint unicode java

I got stuck in java at the paint method. Printing out special letters with System.out will work but not if I'm trying to paint it with g.drawString().

This will work:

System.out.println("\u2197");

This will not:

g.drawString("\u2197", 20, 20);

I'm getting only rectangles on my screen but not the sign.

Upvotes: 1

Views: 200

Answers (1)

You should use a font which have the symbols you are trying to display.

Upvotes: 5

Related Questions