How to use Wingdings font in Java Swing
问题 When I try to use the Wingdings font (or other symbol fonts), the text comes out as rectangles instead of the correct text. How do I get the correct characters to show? import java.awt.*; import javax.swing.*; public class WingdingsFontDisplay extends JFrame { public static void main(String[] args) { new WingdingsFontDisplay(); } public WingdingsFontDisplay() { this.setSize(500,150); this.setTitle("Fun with Fonts"); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //This shows that I do