Skip to content

Commit 1b81f7d

Browse files
committed
Accept 0px as an acceptable letter-spacing value for per-word rendering
This improves performance in Opera.
1 parent 3164e5b commit 1b81f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ _html2canvas.Parse = function ( images, options ) {
285285

286286
text_align = text_align.replace(["-webkit-auto"],["auto"]);
287287

288-
if (options.letterRendering === false && /^(left|right|justify|auto)$/.test(text_align) && /^(normal|none)$/.test(letter_spacing)){
288+
if (options.letterRendering === false && /^(left|right|justify|auto)$/.test(text_align) && /^(normal|none|0px)$/.test(letter_spacing)){
289289
// this.setContextVariable(ctx,"textAlign",text_align);
290290
renderList = textNode.nodeValue.split(/(\b| )/);
291291

0 commit comments

Comments
 (0)