tags:

views:

11

answers:

0

I have some fonts, e.g. dymsmall, installed on my Windows machine which cause the VM to crash when graphics.getFontMetrics(font).stringWidth("hello world") is invoked (the font instances are returned by GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts()). It looks like those fonts which crash the VM are bitmap fonts. Do you know a way to detect such bitmap-fonts in advance, so we can skip them and avoid the VM crash?