* @param size new font size
* @return the derived font.
*/
public static Font getCachedDerivedFont ( final Font font, final int style, final int size )
{
final DerivedFontAttributes attribute = getFontAttribute ( font, style, size );
Font derivedFont = derivedFontsCache.get ( attribute );
if ( derivedFont == null )
{
derivedFont = font.deriveFont ( style, size );
derivedFontsCache.put ( attribute, derivedFont );