|
@@ -113,7 +113,9 @@ class SettingController extends Controller
|
|
return $this->showWarning('分享文字位置错误');
|
|
return $this->showWarning('分享文字位置错误');
|
|
}
|
|
}
|
|
|
|
|
|
- $image = $image->text($text, $pos[0], $pos[1]);
|
|
|
|
|
|
+ $image = $image->text($text, $pos[0], $pos[1], function ($font) {
|
|
|
|
+ $font->file('fonts/simsun.ttc');
|
|
|
|
+ });
|
|
|
|
|
|
$size = $image->filesize();
|
|
$size = $image->filesize();
|
|
|
|
|