Skip to content

Commit

Permalink
Update WaterMark.tsx (#743)
Browse files Browse the repository at this point in the history
feat(m): 修复font属性覆盖错误
  • Loading branch information
javasbot authored Aug 28, 2024
1 parent b389162 commit 88c15e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const WaterMark: React.FC<WaterMarkProps> = p => {
setBase64Url(canvas.toDataURL())
}
} else if (content) {
const frontProps = { ...font, ...DEFAULT_FONT }
const frontProps = { ...DEFAULT_FONT, ...font }
const { size, family, style, weight, color } = frontProps
ctx.textBaseline = 'middle'
ctx.textAlign = 'center'
Expand Down

0 comments on commit 88c15e7

Please sign in to comment.