Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://tinywebgallery.com/forum/

"Could not find/open font"?
https://tinywebgallery.com/forum/viewtopic.php?f=7&t=527
Page 1 of 1

Author:  g-7b5 [ 20. Sep 2006, 17:25 ]
Post subject:  "Could not find/open font"?

Benutze Version 1.5.1, habe aber den inc-folder durch 1.5.1.2 ausgetauscht.

Fast alles klappt jetzt, nur noch folgender, immer wieder auftretender Fehler in der "_mydebug.out":

Quote:
9.20.2006 17:16:02 - ERROR 2 in ies.com/twg15/inc/imagefunctions.inc.php, line 252: imagettftext() [<a href='http://www.php.net/function.imagettftext'>function.imagettftext</a>]: Could not find/open font


Zeile 252 der "imagefunctions.inc.php" steht ja:

Code:
imagettftext($dst, $fontsize, 0, 7, $height-7, $color, $font, $text);


und die variable $font wird ja in config.php definiert:

Code:
$font = "./verdana.ttf"; // this are the settings for the image text


das file "verdana.ttf" liegt bei mir im twg-root folder. sollte doch eigentlich stimmen...? was koennte das problem sein?

meine seite: #removed_broken_link

gruss, alex

Author:  TinyWebGallery [ 20. Sep 2006, 17:46 ]
Post subject: 

komisch - weil aufgerufen wird das von der image.php - da wo die font auch liegt.

blöd ist die Fehlermeldung - du kannst ja mal ./ wegmachen. bzw. dort

(dirname(__FILE__) . "/verdana.ttf");

verwenden.

/Michael

Author:  g-7b5 [ 21. Sep 2006, 02:31 ]
Post subject: 

TinyWebGallery wrote:
komisch - weil aufgerufen wird das von der image.php - da wo die font auch liegt.

blöd ist die Fehlermeldung - du kannst ja mal ./ wegmachen. bzw. dort

(dirname(__FILE__) . "/verdana.ttf");

verwenden.

/Michael


mmh, hab ich mal ergaenzt, bringt aber leider nix. hab jetzt also in der myconfig.php folgendes stehen:

Code:
$font = (dirname(__FILE__)."./verdana.ttf");


noch nen tip?

Author:  TinyWebGallery [ 21. Sep 2006, 08:31 ]
Post subject: 

das ist auch nicht o.k. so - da ist noch ein zusätzlicher . drin!

Author:  g-7b5 [ 27. Sep 2006, 13:07 ]
Post subject: 

TinyWebGallery wrote:
das ist auch nicht o.k. so - da ist noch ein zusätzlicher . drin!


ah, mist. uebersehen. danke, das wars, jetzt klappt alles fehlerfrei!

gruss, alex

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/