note 126038 added to function.imagettftext
| From: | badrou14.yahoo.fr via php-notes | Date: | Sat, 24 Apr 2021 15:49:30 +0000 |
| Subject: | note 126038 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216322@lists.php.net to get a copy of this message | ||
for windows you can use this code thanks to Ohmycode
the link of his solution : https://ohmycode.wordpress.com/2008/09/20/imagettftext-gdfontpath-et-ttf-sous-windows/
<?php
$font = realpath(".")."\\arial.ttf";
$black = imagecolorallocate($im, 0, 0, 0);
$im = imagecreatetruecolor(400, 30);
imagettftext($im, 20, 0, 10, 20, $black, $font, "coucou");
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 90.109.102.121)
----
Manual Page -- https://php.net/manual/en/function.imagettftext.php
Edit -- https://main.php.net/note/edit/126038
Del: integrated -- https://main.php.net/note/delete/126038/integrated
Del: useless -- https://main.php.net/note/delete/126038/useless
Del: bad code -- https://main.php.net/note/delete/126038/bad+code
Del: spam -- https://main.php.net/note/delete/126038/spam
Del: non-english -- https://main.php.net/note/delete/126038/non-english
Del: in docs -- https://main.php.net/note/delete/126038/in+docs
Del: other reasons-- https://main.php.net/note/delete/126038
Reject -- https://main.php.net/note/reject/126038
Search -- https://main.php.net/manage/user-notes.php