Closed vinceh121 closed 4 years ago
On some platforms the rendering hints map returned by Toolkit.getDefaultToolkit().getDesktopProperty("awt.font.desktophints") might be null, in which case, NullPointerExceptions will be thrown and no rendering will be done.
Toolkit.getDefaultToolkit().getDesktopProperty("awt.font.desktophints")
NullPointerException
@vinceh121 Thanks for this fix :)
Seems good to me
@vinceh121 if the hints is null not have sent the cast to Graphics2D :)
Updated with optimization in a642ed9446c67e7c8ae320f622d2a1102ecb411f
On some platforms the rendering hints map returned by
Toolkit.getDefaultToolkit().getDesktopProperty("awt.font.desktophints")
might be null, in which case,NullPointerException
s will be thrown and no rendering will be done.