gd中的php和true类型集合

6 php fonts gd truetype

我尝试在GD库中使用带有4种字体的真实类型集合"gulim.ttc".

像这样:

$font = "fonts/gulim.ttc";
imagettftext($im, 20, 0, 0, 25, $white, $font, $string);
Run Code Online (Sandbox Code Playgroud)

问题是,PHP/GD只使用ttc文件中的第一个字体,但我需要第三个字体叫做"Dotum".

或者,有没有办法将ttc文件解压缩或转换为ttf文件?

Sor*_*inV 4

以下是一些将 TTC 文件分解为 TTF 的程序的链接:链接