mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
use round for line join to avoid sharp edge for outline effect
This commit is contained in:
@@ -425,7 +425,8 @@
|
||||
|
||||
var startPosition = this._calculateFillTextStartPosition();
|
||||
var lineHeight = this._getLineHeight();
|
||||
|
||||
//use round for line join to avoid sharp intersect point
|
||||
this._labelContext.lineJoin = 'round';
|
||||
var color = this._displayedColor;
|
||||
this._labelContext.fillStyle = 'rgb(' + color.r + ',' + color.g + ',' + color.b + ')';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user