public Font getFont(float size) {
    Font font = myFont;
    if (size != font.getSize2D()) {
      font = font.deriveFont(size);
      myFont = font;
    }
    return font;
  }
public Font getFont(float size)