Tentone 9 лет назад
Родитель
Сommit
b6ff1f136c
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      src/extras/core/Font.js

+ 2 - 4
src/extras/core/Font.js

@@ -33,13 +33,11 @@ Object.assign( Font.prototype, {
 
 				var char = chars[ i ];
 
-				if(char === "\n")
-				{
+				if(char === "\n") {
 					offsetX = 0;
 					offsetY -= line_height;
 				}
-				else
-				{
+				else {
 					var ret = createPath( char, scale, offsetX, offsetY );
 					offsetX += ret.offsetX;
 					paths.push( ret.path );

粤ICP备19079148号