When using the gd2 library, I can load a variable font with
imagettftext($image, 24, 0, 10, 100, $black, __DIR__.\'/So