JAL-1953 added configuration font setters
[jalview.git] / src / jalview / ext / archaeopteryx / AptxInit.java
index 6bc8497..f06deb3 100644 (file)
@@ -50,12 +50,12 @@ public final class AptxInit
   public final static Configuration APTX_CONFIG = new Configuration(
           CONFIG_LOC,
           false, false);
-  // static
-  // {
-  // APTX_CONFIG.setBaseFontFamilyName(
-  // Desktop.instance.getFont().getFamily().replaceAll(" ", "_"));
-  // APTX_CONFIG.setBaseFontSize(Desktop.instance.getFont().getSize());
-  // }
+  static
+  {
+    APTX_CONFIG.setBaseFontSize(Desktop.instance.getFont().getSize());
+    APTX_CONFIG
+            .setBaseFontFamilyName(Desktop.instance.getFont().getFamily());
+  }
 
   private final static boolean VALIDATE_PHYLOXML_XSD = APTX_CONFIG
           .isValidatePhyloXmlAgainstSchema();
@@ -82,6 +82,7 @@ public final class AptxInit
       Desktop.instance.startLoading(treeTitle);
     }
 
+
     Phylogeny aptxPhylogeny = Phylogeny
             .createInstanceFromNhxString(nhxString);
     aptxPhylogeny.setName(treeTitle);