private static FontRenderContext createContext() {
    Object aaHint = UIManager.get(RenderingHints.KEY_TEXT_ANTIALIASING);
    if (aaHint == null) aaHint = RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT;
    Object fmHint = UIManager.get(RenderingHints.KEY_FRACTIONALMETRICS);
    if (fmHint == null) fmHint = RenderingHints.VALUE_FRACTIONALMETRICS_DEFAULT;
    return new FontRenderContext(null, aaHint, fmHint);
  }
private static FontRenderContext createContext()