case 'simhei':
        //黑体(黑体常规)
        $fontsiffix = 'simhei.ttf';
        break;
    case '2013041510':
        //华康少女文字
        $fontsiffix = 'DFGBSN5.ttc';
        break;
    default:
        //默认字体是微软雅黑
        $fontsiffix = 'msyh.ttf';
        break;
}
// $fontfile = "c:/windows/fonts/msyhbd.ttf";
$fontfile = "c:/windows/fonts/" . $fontsiffix;
$font = new FontPic($cut, $text, $size, $fontfile, $angle, $which, $layout);
$name_text_color = 'text_color';
$value_text_color = $text_color;
$font->__set($name_text_color, $value_text_color);
//$font->drawPicsRow();//-----可以正常运行
//$font->drawPicsList();	//竖排
if ($which == 1) {
    $font->drawPicsList();
    //竖排
} elseif ($which == 0) {
    $font->drawPicsRow();
    //横排
}
/**
 //下面的代码除了固定size等参数外,可以正常运行
 
            $b = substr($color, 2, 1) . substr($color, 2, 1);
            $rgb = array('r' => hexdec($r), 'g' => hexdec($g), 'b' => hexdec($b));
        }
        return $rgb;
    }
}
//test
//Header('Content-Type:text/html;charset=utf-8');
require 'Cut.class.php';
$text = '你好' . chr(13) . chr(13) . '吗' . chr(13) . '很好';
//$text = '你好' . chr(13) . '吗' . chr(13) . '很好' . chr(13) . '很好';
//$text = '你好吗';
$cut = new Cut();
$size = 30;
$angle = 0;
$which = 0;
$layout = 0;
$fontfile = "c:/windows/fonts/msyhbd.ttf";
$font = new FontPic($cut, $text, $size, $fontfile, $angle, $which, $layout);
//$font->drawPicsRow();
//test
//$arr1 = $font->__get('text_arr_row');
$arr2 = $font->__get('text_arr_list');
//var_dump($arr1);
//var_dump($arr2);
//Header('Content-Type:text/html;charset=utf-8');var_dump($arr2);
$arr1 = $font->getBgWHRow();
$arr2 = $font->getBgWHList();
$font->drawPicsRow();
//-----可以正常运行
//$font->drawPicsList();