diff client/src/lib/mixins.js @ 3396:169680c3698b

client: pdf-template: set font style for the text element
author Fadi Abbud <fadi.abbud@intevation.de>
date Thu, 23 May 2019 10:40:14 +0200
parents 8da2f7b9a04b
children 1ba669cbbee6
line wrap: on
line diff
--- a/client/src/lib/mixins.js	Thu May 23 09:07:09 2019 +0200
+++ b/client/src/lib/mixins.js	Thu May 23 10:40:14 2019 +0200
@@ -68,6 +68,7 @@
       text = this.replacePlaceholders(text);
       // split the incoming string to an array, each element is a string of
       // words in a single line
+      this.pdf.doc.setFontStyle("normal");
       this.pdf.doc.setTextColor(color);
       this.pdf.doc.setFontSize(fontSize);
       var textLines = this.pdf.doc.splitTextToSize(text, width);