在使用gd2库时,我可以使用以下命令加载可变字体
imagettftext($image, 24, 0, 10, 100, $black, __DIR__.'/Some-VariableFont.ttf', 'Hello, World!');
但是我不知道如何设置属性,比如权重或宽度。
有可能吗?如果是,是如何实现的?
发布于 2021-10-17 08:08:42
FreeType有variable font support,但GD没有提供使用它的接口,所以答案是“不”。
https://stackoverflow.com/questions/65230727
复制相似问题