Can I use the capabilities of a variable font with imagettftext()?

187 views Asked by At

When using the gd2 library, I can load a variable font with

imagettftext($image, 24, 0, 10, 100, $black, __DIR__.'/Some-VariableFont.ttf', 'Hello, World!');

But I can't figure out how to set properties such as weight or width.

Is it possible? If yes how?

1

There are 1 answers

1
Olivier On BEST ANSWER

FreeType has variable font support but GD provides no API to use it, so the answer is "no".