Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片水印添加中文字体 #13

Open
yangtongbing opened this issue Jan 8, 2018 · 5 comments
Open

图片水印添加中文字体 #13

yangtongbing opened this issue Jan 8, 2018 · 5 comments

Comments

@yangtongbing
Copy link

添加中文字体时,指定好中文字体文件了,但是生成好的图片有背景,这个怎么搞啊,还是这个里面的bug,所有的中文字体都是有背景的。

@eluotao
Copy link

eluotao commented Aug 21, 2018

你中文设置成功了吗?

@yangtongbing
Copy link
Author

$grafika->text($img, $val,17, $x, $y, new Color("#f70728"),$font);
$font就是你本地字体文件的地址,我用的是Fangsong.ttf

@eluotao
Copy link

eluotao commented Aug 21, 2018

多谢 可以了.

@kosinix
Copy link
Owner

kosinix commented Sep 4, 2018

它有用吗?

@eluotao
Copy link

eluotao commented Sep 4, 2018

可以.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants