changeset 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 6075c4c25568
children 3675c60afd4f
files client/src/lib/mixins.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);