даже заинтересовался твоей проблемой...
но к сожалению быстро нашёл её решение...
в коментах к imagettftext
итак зачитываю тебе их... скорее всего это тебе и поможет...
Цитата:
|
After trying other suggestions like using "putenv('GDFONTPATH=c:\\winnt\\fonts\\');" and "realpath('arial.ttf')" with the font in the same directory as the script. If you are still getting "could not find/open font" with imagettftext on a IIS server, and you keep your sites in a different dirve/partition, try the following. Place the fonts in "\winnt\fonts" folder (directory) on the same dirve/partition.
|
из этого комента видим, что надо положить фонт в папку "\winnt\fonts" на том же диске что и у тебя...
значит в твоём случае получаем d:\winnt\fonts
следующий коммент
Цитата:
- If the font still cannot be found, GD searches
the font in DEFAULT_FONTPATH, which has been
set to C:\winnt\fonts (or something similar for
un*x platforms). Note that this path is
statically compiled into the extension!
|
данный коммент говорит нам вообще о том, что этот путь вкомпилен в ГД либу... так что единственный вариант для тебя положить в d:\winnt\fonts ну или C:\winnt\fonts... хотя по первому коменту видим что надо на том же диске класть...
как поменять встроенный путь
Цитата:
To solve this problem, set the GDFONTPATH
environment variable to your real windows font dir.
(Windows NT: Start->Settings->Control Panel->
System->Advanced->Environment Variables)
|
хороший вариант... почему бы не попробовать...
ну и на последок... так как у тебя 98 винда путь может быть d:\windows\fonts... но попробуй и так и так...
ну и в довершении ещё пару коментов
Цитата:
Note that GD2 requires the absolute pad to you fonts. So if you're fonts are in:
/font/verdana.ttf
then you have to do this:
/home/etc/user/myname/home/htdocs/font/verdana.ttf
I was searching for this a whole day!
|
Цитата:
|
The path to your TTF font file may not contain spaces, the font file won't be found in that case.
|
надеюсь это полностью решит твою проблему...
хоть один из советов должен помочь...
удачи...