Skip to content

Commit 66109bf

Browse files
committed
fix: text outline should not draw when outline width is 0
1 parent a466fca commit 66109bf

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)