Printing web fonts in Firefox

2019-04-21 12:18发布

I am trying to print web pages that contain external CSS references and use web fonts (I mean @font-face attribute) but in print preview the web fonts disappear. Does anyone know a solution without using the web font locally?

3条回答
beautiful°
2楼-- · 2019-04-21 12:41

Looks like printing @font-face fonts is not yet implemented:

https://bugzilla.mozilla.org/show_bug.cgi?id=468568

查看更多
狗以群分
3楼-- · 2019-04-21 12:41

inlcude the file not only for screen but also for print

<link rel="stylesheet" type="text/css" href="main.css" media="screen" />

but include the css also for print

<link rel="stylesheet" type="text/css" href="main.css" media="print" />

in your case the href should then go to an external url

查看更多
冷血范
4楼-- · 2019-04-21 12:44

Works as of Firefox 18! - Yippee!

查看更多
登录 后发表回答