Page 1 of 1

Freetype - TTF / Linkage

Posted: 2003-09-18 11:23
by powie
Ich habe auf 2 Servern zwei unterschiedliche Ausgaben bei phpinfo()

1: FreeType Linkage -> with TTF library
2: FreeType Linkage -> with freetype

Bei beiden wird angezeigt GD Version bundled (2.0.15 compatible) ( PHP 4.3.3)

Der Unterschied dabei ist das bei Variante 1 dieses Script nicht funktioniert : Die Schrift wird einfach nicht angezeigt....

Code: Select all

<?PHP
Header("Content-type: image/jpeg");
$image = imagecreatefromjpeg("betti.jpg");
$white = ImageColorAllocate($image,0,0,0);
ImageTTFText ($image, 10, 0, 10, 20, $white, "rod.ttf", "Johanson - Lucy und ihre Kinder");
imagejpeg($image);
imagedestroy($image);
?> 
Welche Optionen beim PHP Configure haben da drauf Auswirkung . Hab einiges versucht aber habs nicht hinbekommen ... ?

Re: Freetype - TTF / Linkage

Posted: 2003-09-18 11:32
by stefanpropehan
probierst mal so beim ./configure

Code: Select all

--with-freetype-dir=/usr --enable-gd-native-ttf --with-ttf
du must freetype in der gd aktivieren... (schau mal nochmal wo dein freetype installiert ist - normalerweise past der pfad /usr)

Re: Freetype - TTF / Linkage

Posted: 2003-09-18 11:48
by powie
Vielen Dank, was mir fehlte war

Code: Select all

--with-freetype-dir=/usr