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?
FreeType has variable font support but GD provides no API to use it, so the answer is "no".