Php Yii TCPDF在Corel Draw X6中缺少嵌入字体

Php Yii TCPDF在Corel Draw X6中缺少嵌入字体,php,pdf,yii,fonts,tcpdf,Php,Pdf,Yii,Fonts,Tcpdf,我在Yii中使用此扩展: 我想使用外部字体写入pdf文件,例如: 这是我的密码: $pdf = Yii::createComponent('application.extensions.tcpdf.ETcPdf', 'P', 'cm', 'A4', true, 'UTF-8'); $pdf->SetCreator(PDF_CREATOR); $pdf->SetAuthor("Some Body"); $pdf->SetTitle("TCPDF

我在Yii中使用此扩展:

我想使用外部字体写入pdf文件,例如:

这是我的密码:

    $pdf = Yii::createComponent('application.extensions.tcpdf.ETcPdf', 'P', 'cm', 'A4', true, 'UTF-8');
    $pdf->SetCreator(PDF_CREATOR);
    $pdf->SetAuthor("Some Body");
    $pdf->SetTitle("TCPDF Example 002");
    $pdf->SetSubject("TCPDF Tutorial");
    $pdf->SetKeywords("TCPDF, PDF, example, test, guide");
    $pdf->setPrintHeader(false);
    $pdf->setPrintFooter(false);
    $pdf->AddPage();
    $fontRegular = $pdf->addTTFfont(Yii::getPathOfAlias('webroot') . '/OpenSans-Regular.ttf');
    $pdf->SetFont($fontRegular, "", 30);
    $pdf->Cell(0,10,"Example",1,1,'C');
    $pdf->Output("example_002.pdf", "I");
它的作品,我可以阅读pdf的许多程序,除了科雷尔画6X。当我打开pdf时,它会以一条“缺少字体”的消息开始,我无法替换任何其他类型的字体。有谁能告诉我如何添加ttf字体,或将其嵌入pdf


提前谢谢

所以问题在于Corel Draw。你必须安装字体

1) 从下载您的ttf字体

2) 将其解压缩并将字体复制到
C:\Windows\Fonts

3) 重新启动Corel Draw,通过创建文本字段并选择字体,确保新字体可用