?php ### writetext.php ###
$modul_1 = "Hier steht der Text |";
$im1 = imagecreate (300, 50);
$black1 = ImageColorAllocate ($im1, 0, 0, 0);
$white1 = ImageColorAllocate ($im1, 255, 255, 255);
ImageTTFText ($im1, 16, 0, 5, 20, $white1, "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf", $modul_1);
ImageTTFText ($im1, 16, 0, 5, 40, $white1, "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf", $modul_1);header('Content-Type: image/gif');
ImageGif ($im1);
ImageDestroy ($im1);?>
$_fontdata = array();
$_fontdata[] = imagettfbbox ( 16,0,"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf", $modul_1);
$_fontdata[] = imagettfbbox ( 16,0,"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf", $modul_1);echo "<pre>\n";
echo htmlspecialchars(print_r($_fontdata,1));
echo "<pre>\n";Damit müsstest Du etwas anfangen können.
Sieht diesmal recht gut aus...
Hello Tom,
danke Dir schonmal für diese Variante, kann mir sicher schon weiterhelfen... Muss nun nur noch machen das er versteht welches Wort Fett sein soll und welches nicht!