私はさまざまな方法を試しましたが、今はできる限り明確にしています。Windows 7 で PHP/pChart を使用して xampp を使用しています。私のコードには次のものがあります。
<?php
include('pChart/pData.class');
include('pChart/pChart.class');
putenv('GDFONTPATH=' . 'C:\Windows');
...
$Test->setFontProperties("/Fonts/tahoma.ttf",8);
...
?>
ライブラリが誤って.ttfを追加しないように、フォントの前に「/」を含めました。
この件に関するご支援をいただければ幸いです。