@@ -267,7 +267,7 @@ Phaser.RetroFont.TEXT_SET11 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789
267267* @param {number } width - Width in pixels of this RetroFont. Set to zero to disable and re-enable automatic resizing.
268268* @param {string } [lineAlignment='left'] - Align the text within this width. Set to RetroFont.ALIGN_LEFT (default), RetroFont.ALIGN_RIGHT or RetroFont.ALIGN_CENTER.
269269*/
270- Phaser . RetroFont . prototype . setFixedWidth = function ( width , lineAlignment ) {
270+ Phaser . RetroFont . prototype . setFixedWidth = function ( width , lineAlignment ) {
271271
272272 if ( typeof lineAlignment === 'undefined' ) { lineAlignment = 'left' ; }
273273
@@ -352,7 +352,7 @@ Phaser.RetroFont.prototype.resize = function (width, height) {
352352* @method Phaser.RetroFont#buildRetroFontText
353353* @memberof Phaser.RetroFont
354354*/
355- Phaser . RetroFont . prototype . buildRetroFontText = function ( ) {
355+ Phaser . RetroFont . prototype . buildRetroFontText = function ( ) {
356356
357357 var cx = 0 ;
358358 var cy = 0 ;
@@ -363,7 +363,7 @@ Phaser.RetroFont.prototype.buildRetroFontText = function () {
363363
364364 if ( this . fixedWidth > 0 )
365365 {
366- this . resize ( fixedWidth , ( lines . length * ( this . characterHeight + this . customSpacingY ) ) - this . customSpacingY ) ;
366+ this . resize ( this . fixedWidth , ( lines . length * ( this . characterHeight + this . customSpacingY ) ) - this . customSpacingY ) ;
367367 }
368368 else
369369 {
@@ -407,7 +407,7 @@ Phaser.RetroFont.prototype.buildRetroFontText = function () {
407407 {
408408 if ( this . fixedWidth > 0 )
409409 {
410- this . resize ( fixedWidth , this . characterHeight ) ;
410+ this . resize ( this . fixedWidth , this . characterHeight ) ;
411411 }
412412 else
413413 {
@@ -448,7 +448,7 @@ Phaser.RetroFont.prototype.buildRetroFontText = function () {
448448* @param {number } y - The y coordinate.
449449* @param {number } customSpacingX - Custom X spacing.
450450*/
451- Phaser . RetroFont . prototype . pasteLine = function ( line , x , y , customSpacingX ) {
451+ Phaser . RetroFont . prototype . pasteLine = function ( line , x , y , customSpacingX ) {
452452
453453 var p = new Phaser . Point ( ) ;
454454
@@ -457,7 +457,7 @@ Phaser.RetroFont.prototype.pasteLine = function (line, x, y, customSpacingX) {
457457 // If it's a space then there is no point copying, so leave a blank space
458458 if ( line . charAt ( c ) == " " )
459459 {
460- x += this . characterWidth + this . customSpacingX ;
460+ x += this . characterWidth + customSpacingX ;
461461 }
462462 else
463463 {
@@ -468,7 +468,7 @@ Phaser.RetroFont.prototype.pasteLine = function (line, x, y, customSpacingX) {
468468 p . set ( x , y ) ;
469469 this . render ( this . stamp , p , false ) ;
470470
471- x += this . characterWidth + this . customSpacingX ;
471+ x += this . characterWidth + customSpacingX ;
472472
473473 if ( x > this . width )
474474 {
@@ -486,7 +486,7 @@ Phaser.RetroFont.prototype.pasteLine = function (line, x, y, customSpacingX) {
486486* @memberof Phaser.RetroFont
487487* @return {number } The length of the longest line of text.
488488*/
489- Phaser . RetroFont . prototype . getLongestLine = function ( ) {
489+ Phaser . RetroFont . prototype . getLongestLine = function ( ) {
490490
491491 var longestLine = 0 ;
492492
@@ -515,18 +515,18 @@ Phaser.RetroFont.prototype.getLongestLine = function () {
515515* @param {boolean } [stripCR=true] - Should it strip carriage returns as well?
516516* @return {string } A clean version of the string.
517517*/
518- Phaser . RetroFont . prototype . removeUnsupportedCharacters = function ( stripCR ) {
518+ Phaser . RetroFont . prototype . removeUnsupportedCharacters = function ( stripCR ) {
519519
520520 var newString = "" ;
521521
522522 for ( var c = 0 ; c < this . _text . length ; c ++ )
523523 {
524- var char = this . _text [ c ] ;
525- var code = char . charCodeAt ( 0 ) ;
524+ var aChar = this . _text [ c ] ;
525+ var code = aChar . charCodeAt ( 0 ) ;
526526
527- if ( this . grabData [ code ] >= 0 || ( ! stripCR && char === "\n" ) )
527+ if ( this . grabData [ code ] >= 0 || ( ! stripCR && aChar === "\n" ) )
528528 {
529- newString = newString . concat ( char ) ;
529+ newString = newString . concat ( aChar ) ;
530530 }
531531 }
532532
0 commit comments