diff --git a/src/components/codeEditors/aceEditors/multiFileAceEditor.tsx b/src/components/codeEditors/aceEditors/multiFileAceEditor.tsx
index 941ce9e618ed11eda5dfb3ec5abe99c59a8ae053..ba9e58520e696251d3b436538153b065c40a657b 100644
--- a/src/components/codeEditors/aceEditors/multiFileAceEditor.tsx
+++ b/src/components/codeEditors/aceEditors/multiFileAceEditor.tsx
@@ -511,7 +511,7 @@ class MultiFileAceEditor extends React.Component<Props, any> {
       }
 
       innerHtml += markdown.render(markdownContent)
-      innerHtml += aceRenderedObj.html
+      innerHtml += `<div class="font-sized">${aceRenderedObj.html}</div>`
 
       if (onePagePerFile === false) { //continuous text --> add new line after file
         innerHtml += `<br />`
@@ -538,19 +538,23 @@ class MultiFileAceEditor extends React.Component<Props, any> {
     // tslint:disable-next-line
     fontSize = Math.min(fontSize, 17) //everything above 17 will not work properly (lines intersect, tested)
     // tslint:disable-next-line
-    fontSize = Math.max(fontSize, 10) //8 would work too but 12 is normal
+    fontSize = Math.max(fontSize, 8) //8 would work too but 12 is normal...
+
+
+    const editorStyleFontSize = document.createElement("style") as HTMLStyleElement
+    editorStyleFontSize.appendChild(document.createTextNode(`
+    #${tempPrintDivId} .font-sized .ace_static_highlight {
+      font-size: ${fontSize}px;
+    }
+    `))
+    document.head.appendChild(editorStyleFontSize)
 
     PrintHelper.printContent(innerHtml,
                              () => {
-                               const div = document.querySelector(
-                                 `#${tempPrintDivId} .ace_static_highlight`) as HTMLDivElement | null
-
-                               //static renderer has hard coded fontsize...
-                               if (!div) return
-                               div.style.fontSize = `${fontSize}px`
                              },
                              () => {
                                document.head.removeChild(editorStyle)
+                               document.head.removeChild(editorStyleFontSize)
                              }
     )
 
diff --git a/src/constants.ts b/src/constants.ts
index fd0dd9d1a31c971aae94e08d7224b16dd2acef08..5be2f39cd3e0cfc6761a25bd4a0752e955dc0879 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -13,7 +13,7 @@ import Logger from './helpers/logger'
  * y - breaking changes / new features
  * z - fixes, small changes
  */
-export const versionString = '2.5.7'
+export const versionString = '2.5.8'
 
 
 export const supportMail = 'yapex@informatik.uni-halle.de'