我正在使用mpdf生成发票 . 但条形码不起作用 . 我使用字体IDAutomationHC39M条形码

我通过以下步骤将IDAutomationHC39M字体集成到mpdf:

1. I uploaded IDAutomationHC39M.ttf to mpdf/ttfonts/
2. Then i updated mpdf/config_fonts.php font array

"IDAutomationHC39M" => array(
    'R' => "IDAutomationHC39M.ttf"
    ),

现在看看我的最终代码:

<?php
$html = '
<html><head><style>
body {font-family: IDAutomationHC39M; font-size:30px;}
</style></head>
 <body>38329638</body>
</html>';


$mpdf = new mPDF('utf-8', 'A4', '8', '', 10, 10, 22, 22, 10, 20);
$mpdf->WriteHTML($html);
$mpdf->Output();
?>

但它没有用 .
It look like bellow image

Currently it is looking as

But it should like this :

It should like this