Skip to content

Commit

Permalink
刪首字符是否「"」之判斷 (#2187)
Browse files Browse the repository at this point in the history
  • Loading branch information
heangfat authored Jan 11, 2024
1 parent 87bc507 commit 2dfb108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export function getFont(style) {
return (style['textStyle'] && style['textStyle'] !== 'normal' ? style['textStyle'] + ' ' : '') +
(style['textWeight'] && style['textWeight'] !== 'normal' ? style['textWeight'] + ' ' : '') +
textSize + 'px ' +
(!style['textFaceName'] ? DEFAULT_FONT : (style['textFaceName'][0] === '"' ? style['textFaceName'] : '"' + style['textFaceName'] + '"'));
(style['textFaceName'] ? style['textFaceName'] : DEFAULT_FONT);
}
}

Expand Down

0 comments on commit 2dfb108

Please sign in to comment.