diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java index db73e850..97d977c6 100755 --- a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java +++ b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java @@ -289,8 +289,9 @@ public class FreemindExporter // Font size if (idx < countParts && part[idx].length() != 0) { - String size = part[idx]; - font.setSIZE(new BigInteger(size)); + final String size = part[idx]; + int freeSize = Integer.parseInt(size); + font.setSIZE(BigInteger.valueOf(wiseToFreeFontSize.get(freeSize))); updated = true; } idx++; @@ -319,4 +320,20 @@ public class FreemindExporter } } } + + // Freemind size goes from 10 to 28 + // WiseMapping: + // 6 Small + // 8 Normal + // 10 Large + // 15 Huge + static private Map wiseToFreeFontSize = new HashMap(); + static { + wiseToFreeFontSize.put(6,10); + wiseToFreeFontSize.put(8,12); + wiseToFreeFontSize.put(10,18); + wiseToFreeFontSize.put(15,24); + } + + }