Giter VIP home page Giter VIP logo

Comments (4)

Kuingsmile avatar Kuingsmile commented on June 16, 2024

@LiarOnce

C:\Users\test\AppData\Local\Microsoft\Windows\Fonts\LXGWWenKaiScreenR.ttf
C:/Users/ma_sh/AppData/Local/Microsoft/Windows/Fonts/LXGWWenKaiScreenR.ttf

上面的路径我试了下都是可以的,你看下是不是因为水印颜色没调整的原因,原来默认用的透明色 rgba(204, 204, 204, 0.45),如果是白色或者浅色背景的图片会看不出来加了水印,调整下颜色试试

image
image

from piclist.

LiarOnce avatar LiarOnce commented on June 16, 2024

@Kuingsmile

我将颜色设置成rgba(0, 0, 0, 1)了(使用白色图片测试),在日志上依然显示下载字体失败:
image

from piclist.

LiarOnce avatar LiarOnce commented on June 16, 2024

问题解决了,现在可以正常添加水印。

原因是无论是否使用自定义字体,且无论水印类型是文字还是图片(已尝试图片类型的水印结果相同),都必须让黑体的字体文件(即%APPDATA%\piclist\assets\simhei.ttf)存在才能够添加成功。

from piclist.

Kuingsmile avatar Kuingsmile commented on June 16, 2024

问题解决了,现在可以正常添加水印。

原因是无论是否使用自定义字体,且无论水印类型是文字还是图片(已尝试图片类型的水印结果相同),都必须让黑体的字体文件(即%APPDATA%\piclist\assets\simhei.ttf)存在才能够添加成功。

好的 这里应该是个bug 我调整下黑体字体文件的判断逻辑

from piclist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.