JAL-3056 suppress Lineart option in JalviewJS
[jalview.git] / src / jalview / gui / ImageExporter.java
index fc971e2..4c2c8ba 100644 (file)
@@ -118,10 +118,15 @@ public class ImageExporter
     /*
      * Prompt for Text or Lineart (EPS/SVG) unless a preference is already set
      * for this as EPS_RENDERING / SVG_RENDERING
+     * Always set to Text for JalviewJS as Lineart (glyph fonts) not available
      */
     String renderStyle = Cache.getDefault(
             imageType.getName() + "_RENDERING",
             LineartOptions.PROMPT_EACH_TIME);
+    if (Jalview.isJS())
+    {
+      renderStyle = "Text";
+    }
     AtomicBoolean textSelected = new AtomicBoolean(
             !"Lineart".equals(renderStyle));
     if ((imageType == TYPE.EPS || imageType == TYPE.SVG)