首页 > 解决方案 > cfhtmltopdf 不适用于 googleapis 字体

问题描述

为什么 cfhtmltopdf 不显示 googleapis 字体?

<cfhtmltopdf encryption = "AES_128">
<html>
<head>
    <!--Add GoogleFonts-->
  <link href="https://fonts.googleapis.com/css?family=Aguafina+Script|Alex+Brush|Bilbo|Condiment|Great+Vibes|Herr+Von+Muellerhoff|Kristi|Meddon|Monsieur+La+Doulaise|Norican|Nothing+You+Could+Do|Parisienne|Permanent+Marker|Sacramento|Yellowtail" rel="stylesheet">
</head>
<body>

        <p id="displaySignature" style="font-family: Meddon, cursive; font-size: 30px;">Test</p>

</body>

</html>
</cfhtmltopdf>

它忽略了字体样式。

标签: pdfcoldfusion

解决方案


你可以去ColdFusion管理员->服务器设置->字体管理,导入你需要的字体试试。


推荐阅读