Freetype - TTF / Linkage

Apache, Lighttpd, nginx, Cherokee
Post Reply
powie
Posts: 80
Joined: 2002-09-25 16:41
Location: Singen
Contact:
 

Freetype - TTF / Linkage

Post 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 ... ?
stefanpropehan
Posts: 335
Joined: 2002-12-17 22:25
Location: Berlin
 

Re: Freetype - TTF / Linkage

Post 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)
powie
Posts: 80
Joined: 2002-09-25 16:41
Location: Singen
Contact:
 

Re: Freetype - TTF / Linkage

Post by powie »

Vielen Dank, was mir fehlte war

Code: Select all

--with-freetype-dir=/usr
Post Reply