最近許多Youtuber被字型公司控告侵權.
也就是說只要使用在圖像或影片不能用於未授權的字型製作字幕.
否則會以每個月2萬元的費用支付給字型創作公司.
所以建議大家可以下載以政府提供的字體:
CNS11643中文標準交換碼全字庫(簡稱全字庫)
https://data.gov.tw/dataset/5961
這個是全字庫的字體,可以在政府開放平台中下載取得.
因為沒有做用微軟作業系統創作影片,所以應該沒有被告的風險.
最近許多Youtuber被字型公司控告侵權.
也就是說只要使用在圖像或影片不能用於未授權的字型製作字幕.
否則會以每個月2萬元的費用支付給字型創作公司.
所以建議大家可以下載以政府提供的字體:
CNS11643中文標準交換碼全字庫(簡稱全字庫)
https://data.gov.tw/dataset/5961
這個是全字庫的字體,可以在政府開放平台中下載取得.
因為沒有做用微軟作業系統創作影片,所以應該沒有被告的風險.
Centos 安裝MING和PHP-MING
yum install bison flex freetype-devel mkdir /usr/local/src/ming cd /usr/local/src/ming
wget http://downloads.sourceforge.net/ming/ming-0.4.0.beta5.tar.gz tar xzf ming*.tar.gz cd ming* ./configure --enable-php make make install
Server side:
<?php
$json = file_get_contents(‘php://input’);
$obj = json_decode($json);
if($obj->name!=””)
$result[“ok”]=1;
else
$result[“ok”]=0;
echo json_encode($result);
?>
Client side:
<?php
$data[“name”]=”Blah blah”;
$data_string = json_encode($data);
$ch = curl_init(‘https://jacch.php5.idv.tw/json.php’);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Content-Type: application/json’,
‘Content-Length: ‘ . strlen($data_string))
);
$result = curl_exec($ch);
$result = json_decode($result);
var_dump($result);
?>
用PHP連結企業郵箱寄送信件的程式Sample
$this->mail = new PHPMailer(true);
if(is_a($this->mail,”PHPMailer”)){
try {
$this->mail->isSMTP();
$this->mail->SMTPDebug = 0;
$this->mail->Host = “hwsmtp.exmail.qq.com”;
$this->mail->Port = 465;
$this->mail->SMTPSecure= “ssl”;
$this->mail->SMTPAuth = true;
$this->mail->SMTPKeepAlive=true;
//帳號
$this->mail->Username=”noreply@blahblah.com.xxx”;
//密碼
$this->mail->Password=”blahblah”;
//
$this->mail->setFrom($from_email, $from_name);
$this->mail->CharSet = mb_detect_encoding($contents);
$this->mail->addAddress($email, $to_name);
$subject = base64_encode($subject);
$subject = ‘=?utf8?B?’.$subject .’?=’;
$this->mail->Subject = $subject;
$this->mail->Body =$contents;
$this->mail->IsHTML(true);
//寄出
$this->mail->send();
} catch (phpmailerException $e) {
//echo $e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
//echo $e->getMessage(); //Boring error messages from anything else!
}