Skip to content

Commit

Permalink
更换默认中文字体
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Mar 17, 2022
1 parent 7e4d99d commit b2f8d99
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file added assets/zhttfs/1.otf
Binary file not shown.
Binary file removed assets/zhttfs/1.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Captcha.php
Expand Up @@ -192,7 +192,7 @@ public function create(string $config = null, bool $api = false): Response
$dir = dir($ttfPath);
$ttfs = [];
while (false !== ($file = $dir->read())) {
if ('.' != $file[0] && substr($file, -4) == '.ttf') {
if (substr($file, -4) == '.ttf' || substr($file, -4) == '.otf') {
$ttfs[] = $file;
}
}
Expand Down

2 comments on commit b2f8d99

@hbh112233abc
Copy link

@hbh112233abc hbh112233abc commented on b2f8d99 Mar 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

出bug了, 使用了这个版本 发现原来4个数字的验证码 150*55的图片,验证码显示不全哦
image

@hbh112233abc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

出bug了, 使用了这个版本 发现原来4个数字的验证码 150*55的图片,验证码显示不全哦 image

可能是我的字号比较大,原来老版本的字号20没问题的,现在改为16,还是时不时的只出现3个数字的,这是故意防刷的么??

Please sign in to comment.