Skip to content

Commit e8984e9

Browse files
authored
Merge pull request #1361 from galacean/fix/outline-width-zero-draw
fix: text outline should not draw when outline width is 0
2 parents 0607812 + 66109bf commit e8984e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/effects-core/src/plugins/text/text-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export class TextComponent extends MaskableGraphic implements ITextComponent {
453453
});
454454

455455
// 先描边
456-
if (style.isOutlined) {
456+
if (style.isOutlined && style.outlineWidth > 0) {
457457
charsInfo.forEach(charInfo => {
458458
const ox = layout.getOffsetX(style, charInfo.width);
459459

0 commit comments

Comments
 (0)