Skip to content

Commit 1bc3c15

Browse files
committed
Merge pull request phaserjs#677 from nickryall/dev-text
Fix for 'jagged' strokes on custom fonts.
2 parents 3f8911d + 76736a6 commit 1bc3c15

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gameobjects/Text.js

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

377377
this.context.textBaseline = 'top';
378+
this.context.lineJoin = 'round';
378379

379380
//draw lines line by line
380381
for (i = 0; i < lines.length; i++)

0 commit comments

Comments
 (0)