Printing web fonts in Firefox

对着背影说爱祢 提交于 2019-12-22 04:08:22

问题


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?


回答1:


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

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




回答2:


Works as of Firefox 18! - Yippee!




回答3:


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



来源:https://stackoverflow.com/questions/4031272/printing-web-fonts-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!