Skip to content

Commit e85bbf8

Browse files
committed
Text.updateText now sets the lineCap to round to avoid occassional font glitching issues in Chrome.
1 parent 360d744 commit e85bbf8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Version 2.0.4 - "Mos Shirare" - in development
8383
* 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.
8484
* 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.
8585
* Math.smoothstep and Math.smootherstep have been updated to work regardless if a is > or < b (thanks @gre, fix #772)
86+
* Text.updateText now sets the lineCap to `round` to avoid occassional font glitching issues in Chrome.
8687

8788

8889
### New Features

src/gameobjects/Text.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ Phaser.Text.prototype.updateText = function () {
380380
this.context.shadowBlur = this.style.shadowBlur;
381381

382382
this.context.textBaseline = 'top';
383+
this.context.lineCap = 'round';
383384
this.context.lineJoin = 'round';
384385

385386
//draw lines line by line

0 commit comments

Comments
 (0)