【发布时间】:2013-07-14 23:06:55
【问题描述】:
我正在尝试实现 DOMPDF,一切正常(感谢多个 Stack 用户),但我现在在渲染 WebFonts 时遇到了问题。
根据 DOMPDF 的 Google Code 项目中的示例,可以使用 webfonts: http://pxd.me/dompdf/www/examples.php#css_at_font_face.html,html
我在页面中引用了字体,就像在 HTML 页面中一样:
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
我已经在 CSS 中引用了字体:
body{
font-family: 'Roboto Condensed', sans-serif;
}
但 DOM PDF 报告:
Class 'Font_Glyph_Outline' not found
还有 DOMPDF 大师可以来帮助我吗?
【问题讨论】:
标签: php cakephp webfonts dompdf google-webfonts