呈现PDF错误字体粗细。仅显示<b>或<strong>,其他为块

时间:2019-04-28 23:54:56

标签: html css rendering dompdf

我的PDF呈现错误字体粗细。仅显示带有“ b”或“ strong”的文本,其他文本(如段落)是怪异的块。如果我只是流式传输PDF和预览,一切看起来都会很好。但是,当我保存PDF “ OUTPUT()” 并从服务器打开PDF时,字体粗细为400的字符将不会显示,而是显示奇怪的块。有人对此有解决办法吗?我正在搜索将近6个小时,找不到解决方案。

我拥有类似的东西:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

@font-face {
      font-family: 'Nunito';
      font-style: normal;
      font-weight: normal;
      src: url('https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet'); /* IE9 Compat Modes */
}

body {
    font-family: 'Nunito', sans-serif!important;
}

0 个答案:

没有答案
相关问题