pdf - 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>
它忽略了字体样式。
解决方案
你可以去ColdFusion管理员->服务器设置->字体管理,导入你需要的字体试试。
推荐阅读
- java - Android FireStore RecyclerView onSwiped 方法不更新 RecyclerView
- grafana - 当 root_url 设置为 '%(protocol)s://%(domain)s:%(http_port)s/grafana' 时,Grafana 电子邮件没有正确的 url
- javascript - 如何格式化工具提示axispointer echart中的值(角度)
- wordpress - 寻找使 mysite.com/product 成为 mysite.com/product?userid=1 的方法(WordPress 网站)
- pymol - 在 pymol 中打印或输出选定的残基
- jquery - 从 .click() 到 .on() 用于动态内容时定位多个元素
- spring-boot - 如何将变量数据传递给 Spring Custom Validator?
- reactjs - 安装反应导航版本4的问题
- c99 - 为什么我在执行 exe 时得到 Segmantation fault core dump
- c++ - 允许点击通过非透明窗口上的窗口(命中测试透明度)