From f40c20d7fb98bf1d5f3a71f17e0f8f515da4cc2c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 10 Aug 2018 16:44:24 +0100 Subject: [PATCH] JAL-3056 suppress Lineart option in JalviewJS --- src/jalview/gui/ImageExporter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/gui/ImageExporter.java b/src/jalview/gui/ImageExporter.java index fc971e2..4c2c8ba 100644 --- a/src/jalview/gui/ImageExporter.java +++ b/src/jalview/gui/ImageExporter.java @@ -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) -- 1.7.10.2