To add on to user2724960's answer;
Changing the FontName to __DIR__ . '/graph/fonts/someFont.ttf' did it for me.
Full line:
$myPicture->setFontProperties(array("FontName"=>__DIR__ . '/graph/fonts/someFont.ttf',"FontSize"=>14));
Don't forgot to replace "someFont" with the name of your font file (default: "Forgotte")