0
이 코드에 자신의 글꼴 (트루 타입)을 사용하려는
와 PHP는 이미지를 렌더링 :자신의 글꼴
<?php
header("Content-type: image/png");
// Email adres renderen
$email = "[email protected]";
$length = (strlen($email)*8);
$im = @ImageCreate ($length, 20)
or die ("Kan geen nieuwe afbeelding genereren");
$background_color = ImageColorAllocate ($im, 53, 88, 121); // Container BG: 53,88,121
$text_color = ImageColorAllocate ($im, 194, 212, 229);
imagestring($im, 3,5,2,$email, $text_color);
imagepng ($im);
?>
이 어떻게에서 글꼴을 변경할 수 있습니다 : 오픈 산세 볼드체? 경로는 ../fonts/opensans_semibold_macroman/OpenSans-Semibold-webfont.ttf입니다.