We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bf79f0 + 42d7f17 commit 392ec79Copy full SHA for 392ec79
plugins/context2d.js
@@ -299,7 +299,6 @@
299
this.path = origPath;
300
}
301
302
- var scale;
303
var scale;
304
if (this.pdf.hotfix && this.pdf.hotfix.scale_text) {
305
// We only use X axis as scale hint
@@ -355,7 +354,6 @@
355
354
356
357
358
359
360
361
// We only use the X axis as scale hint
@@ -475,7 +473,7 @@
475
473
476
474
this.pdf.setFont(jsPdfFontName, style);
477
} else {
478
- var rx = /(\d+)(pt|px|em)\s+(\w+)\s*(\w+)?/;
+ var rx = /\s*(\d+)(pt|px|em)\s+([\w "]+)\s*([\w "]+)?/;
479
var m = rx.exec(font);
480
if (m != null) {
481
var size = m[1];
0 commit comments