I am having trouble getting any type of symbol font to display properly. I have tried both WingDings and Symbol. Currently the code I have does the following.
1 -Starts by putting the font in the defaults table for later lookup by the app
defaults.put("symbols.font", new FontUIResource("WingDings", Font.BOLD, 16));
2 - Grabs the font at a later point from the defaults table
Font symbolsFont = (Font)UIManager.get("symbols.font");
3 - Sets the font and draws some text with it
The problem is that anything drawn shows up as an open square. For whatever reason it appears not to recognize the font.
How do I remedy this problem and make sure it doesn't happen on end-users machines?