JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / jalview / gui / SequenceRenderer.java
index fb967ed..81b394b 100755 (executable)
@@ -30,9 +30,6 @@ import java.awt.Color;
 import java.awt.FontMetrics;
 import java.awt.Graphics;
 
-import org.jfree.graphics2d.svg.SVGGraphics2D;
-import org.jibble.epsgraphics.EpsGraphics2D;
-
 public class SequenceRenderer implements jalview.api.SequenceRenderer
 {
   final static int CHAR_TO_UPPER = 'A' - 'a';
@@ -257,19 +254,8 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer
     }
     graphics.setColor(av.getTextColour());
 
-    boolean drawAllText = monospacedFont && av.getShowText() && allGroups.length == 0
-            && !av.getColourText() && av.getThresholdTextColour() == 0;
-
-    /*
-     * EPS or SVG misaligns monospaced strings (JAL-3239)
-     * so always draw these one character at a time
-     */
-    if (graphics instanceof EpsGraphics2D
-            || graphics instanceof SVGGraphics2D)
-    {
-      drawAllText = false;
-    }
-    if (drawAllText)
+    if (monospacedFont && av.getShowText() && allGroups.length == 0
+            && !av.getColourText() && av.getThresholdTextColour() == 0)
     {
       if (av.isRenderGaps())
       {