I was creating a showMessageDialog, just like component from `JOptionPane.showMessageDialog` and I tried to use UnicodeFont to compute total width of the string, so that I can check if the String line goes above max width of the panel. However, my frames have dropped from 2000 fps on to 30. I thought the reason could be UnicodeFont, I commented try/catch block where I create font, and frames are back to normal. So what do you think could be the problem, font or list of the methods I call to make an effects to a font instance?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org