Browse Source

Font: Add hint for IE11 workaround.

Mugen87 5 years ago
parent
commit
cf977bb132
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/core/Font.js

+ 1 - 1
src/extras/core/Font.js

@@ -39,7 +39,7 @@ Object.assign( Font.prototype, {
 
 function createPaths( text, size, data ) {
 
-	var chars = Array.from ? Array.from( text ) : String( text ).split( '' ); // see #13988
+	var chars = Array.from ? Array.from( text ) : String( text ).split( '' ); // workaround for IE11, see #13988
 	var scale = size / data.resolution;
 	var line_height = ( data.boundingBox.yMax - data.boundingBox.yMin + data.underlineThickness ) * scale;