In JCP, the drawing of a single atom as first element was very slow. These patches have some fixes doing this:
- Unncessary text groups are avoided
- FontMetrics is set up in constructor
Note that the most important slowdown comes from swing, taking around half a second for the first string. By drawing a dummy string in background color first time the panel is painted this can be hidden from the user. For doing this, the font manager is needed, so I added a getter for it.