<?PHP // 画像の新規作成 $image = imagecreatetruecolor(500, 300); // フォントサイズ $fsize = 50; // フォント角度 $fangle = 0; // フォントカラー $fcolor = imagecolorallocate($image, 255, 255, 255); // 使用フォント $fpath = "./ipagp.ttf"; // X座標マージン $margin = 10; // 文字出力 $textList = array("連邦の", "モビルスーツは", "化け物か"); for ($i = 0; $i < count($textList); $i++) { // 画像の出力位置を計算 $px = $margin; imagettftext($image, $fsize, $fangle, $px, 75