# HG changeset patch # User Fadi Abbud # Date 1558600814 -7200 # Node ID 169680c3698beb5e7b404d2757925d577bfe1362 # Parent 6075c4c25568bda6ff7900c5cd3428ad51fee19e client: pdf-template: set font style for the text element diff -r 6075c4c25568 -r 169680c3698b client/src/lib/mixins.js --- 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);