Text.updateText now sets the lineCap to round to avoid occassional font glitching issues in Chrome.

This commit is contained in:
photonstorm 2014-04-28 15:17:47 +01:00
parent 360d744472
commit e85bbf8bc5
2 changed files with 2 additions and 0 deletions

View file

@ -83,6 +83,7 @@ Version 2.0.4 - "Mos Shirare" - in development
* Blank Tilemaps no longer create `null` tiles, but instead create Tile objects with an index of -1 which can be replaced and updated like any other tile.
* Tilemap.addTilesetImage will now raise a console.warn if you specify an invalid tileset key and not create the tileset rather than pick the default set.
* Math.smoothstep and Math.smootherstep have been updated to work regardless if a is > or < b (thanks @gre, fix #772)
* Text.updateText now sets the lineCap to `round` to avoid occassional font glitching issues in Chrome.
### New Features

View file

@ -380,6 +380,7 @@ Phaser.Text.prototype.updateText = function () {
this.context.shadowBlur = this.style.shadowBlur;
this.context.textBaseline = 'top';
this.context.lineCap = 'round';
this.context.lineJoin = 'round';
//draw lines line by line