mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Text.updateText now sets the lineCap to round
to avoid occassional font glitching issues in Chrome.
This commit is contained in:
parent
360d744472
commit
e85bbf8bc5
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue