Printing web fonts in Firefox

2019-04-21 12:01发布

问题:

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