Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Update font_renderer.js
Browse files Browse the repository at this point in the history
many semicolon issues fixed
  • Loading branch information
liesislukas committed Oct 2, 2016
1 parent 3d3ee4c commit bf30b97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions font_renderer.js
Expand Up @@ -88,7 +88,7 @@ FontRenderer.attributes.add('maxResHeight', {
type: 'number',
default: 720,
description: 'The maximum resolution height of the application. Used to scale the font accordingly.'
})
});


/**
Expand Down Expand Up @@ -363,7 +363,7 @@ FontRenderer.prototype.updateText = function () {

var kerning = 0;
if (this.font.kernings[charId] && this.font.kernings[charId][nextId])
kerning = this.font.kernings[charId][nextId]
kerning = this.font.kernings[charId][nextId];

// Advance the cursor by xadvance adding kerning if necessary for the current character pair
cursorX += (fontChar.xadvance + kerning);
Expand All @@ -384,7 +384,7 @@ FontRenderer.prototype.calculateOffset = function () {

this.offset.y += canvas.offsetHeight;
return this.offset;
},
};

FontRenderer.prototype.calculateScaling = function () {
var canvas = this.app.graphicsDevice.canvas;
Expand Down Expand Up @@ -441,7 +441,7 @@ FontRenderer.prototype.calculateAnchorOffset = function () {
}

return this.anchorOffset;
},
};

FontRenderer.prototype.calculatePivotOffset = function () {
var width = this.width * this.scaling.x;
Expand Down

0 comments on commit bf30b97

Please sign in to comment.