Skip to content

设置emoji水印右侧留白 #1284

Description

@wangyuzhu1

问题描述

文本模式下,设置fontSize=16px,传入emoji时,emoji右侧有留白

复现步骤

const watermark = new Watermark({
"width": 300,
"height": 300,
"rotate": 45,
"contentType": "text",
"content": "测试😋😄",
"globalAlpha": 0.5,
"mode": "default",
"textType": "fill",
"lineHeight": 30,
"fontSize": "16px",
"fontFamily": "sans-serif",
"fontStyle": "",
"fontVariant": "",
"fontColor": "#000",
"fontWeight": "normal",
"filter": "none",
"letterSpacing": "0px"
})

环境详情

  • watermark-js-plus version: 1.5.7
  • vue version: 3.4.27
  • Chrome version: 135.0.7049.116(正式版本) (arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions