Explorar o código

Font: Add hint for IE11 workaround.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
cf977bb132
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;