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';
}
graphics.setColor(av.getTextColour());
- if (monospacedFont && av.getShowText() && allGroups.length == 0
- && !av.getColourText() && av.getThresholdTextColour() == 0)
+ boolean drawAllText = monospacedFont && av.getShowText() && allGroups.length == 0
+ && !av.getColourText() && av.getThresholdTextColour() == 0;
+ if (graphics instanceof EpsGraphics2D
+ || graphics instanceof SVGGraphics2D)
+ {
+ drawAllText = false;
+ }
+ if (drawAllText)
{
if (av.isRenderGaps())
{