This line should be changed to this:
$myPicture -> setFontProperties(array("FontName" => XOOPS_ROOT_PATH."/modules/formulize/libraries/pChart/fonts/arial.ttf", "FontSize" => 8));