그럼 난이 이미지의 텍스트를 작성하기 위해 노력하고있어 나는이있다 :두 질문 : 굵게 단어와 뉴 라인 PHP
header("Content-type: image/png");
$font = 4;
$width = ImageFontWidth($font) * strlen($string);
$height = ImageFontHeight($font);
$im = @imagecreate($width,$height);
$background_color = imagecolorallocatealpha($im, 255, 255, 255, 127);
$text_color = imagecolorallocate($im, 0, 0,0);
imagestring($im, $font, 0, 0, utf8_decode($string), $text_color);
imagepng($im);
imagedestroy($im);
그리고 문자열 :
$string = "Hello, My name is Ikillnukes and I'm trying to do a newline with PHP.";
글쎄을
정상 출력 : 안녕하세요, 저는 제 이름이 Ikillnukes이고 PHP로 개행을 시도하고 있습니다.
내가 원하는 :이
안녕하세요, 제 이름은 Ikillnukes 및
내가 PHP와 줄 바꿈을 할 노력하고있어입니다.
어떻게하면됩니까?
그리고 한 가지 더 ... 문자열에 대담한 텍스트를 추가하고 싶습니다. 어떻게해야합니까?