示例#1
0
 private static function _setRandFont()
 {
     $_path = Wind::getRealDir(self::$path . '.font');
     if (self::$verifyType < 5) {
         $_fontList = self::getEnFontList();
     } else {
         $_fontList = self::getCnFontList();
     }
     $key = self::$isRandFont ? array_rand($_fontList, 1) : 0;
     self::$_font = $_path . '/' . $_fontList[$key];
     return;
 }