网上找了一圈各路解决办法着实有点傻逼。是在受不了。还有那个**所谓的字体工具竟然将字体装在vendor里,并且配置字体的文件也在vendor里,我人麻了。这不是搞笑吗。行了也不吐糟了。看源码给提供的方式把。哎。
<?php
require 'vendor/autoload.php';
// reference the Dompdf namespace
use Dompdf\Dompdf;
$html = <<<EOD
<html>
<head>
<style>
/* ***********重点******************* */
*{
font-family: "zt";
}
/* ***********重点******************* */
table{
border-collapse: collapse;
}
</style>
</head>
<body>
<table border="1">
<tbody>
<tr>
<td rowspan="3">1awefawefawefawe+安慰法安慰法安慰法+ef6a+w6ef+</td>
<td>2<br>2<br>2<br>2<br>2<br>2<br>2<br>2<br>2<