imagefttext(): Could not find/open font in D:\\iis\\php\\...
环境:IIS + PHP7.2.33
imagefttext(
GdImage $image,
float $size,
float $angle,
int $x,
int $y,
int $color,
string $font_filename,
string $text,
array $options = []
)
$font_filename 字体文件必须为绝对路径。例如:
D:\\iis\\php\\webapp\\tools\\verification\\image\\arial.ttf
否则抛出 imagefttext(): Could not find/open font 错误