为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Font problem when printing from Firefox on macOS 10.14.3

  • 6 个回答
  • 1 人有此问题
  • 40 次查看
  • 最后回复者为 XiaYang

more options

I'm having trouble printing from Firefox 65.0.2 under macOS 10.14.3. Documents are displayed correctly in the browser, but when I'm trying to print, the fonts are substituted by garble (see image below), no matter if I send it to a physical printer, print to pdf or just open it in preview. I've tried following all the steps in https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox, and even done a clean reinstall -- to no avail.

Any help would be greatly appreciated. I'd really prefer not to have to go back to using Safari ;-(

I'm having trouble printing from Firefox 65.0.2 under macOS 10.14.3. Documents are displayed correctly in the browser, but when I'm trying to print, the fonts are substituted by garble (see image below), no matter if I send it to a physical printer, print to pdf or just open it in preview. I've tried following all the steps in https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox, and even done a clean reinstall -- to no avail. Any help would be greatly appreciated. I'd really prefer not to have to go back to using Safari ;-(

所有回复 (6)

more options

Sorry, image didn't go through the first time. Here it is:

more options

What is the site?

more options

Hi XiaYang, that particular example is a PDF. Firefox's built-in PDF viewer sometimes has problems with fonts specified in PDFs, so in case of any odd behavior, it is better to open the PDF in Apple's Preview app or in Adobe Reader and print from there instead. You can use the Download button on the viewer's black toolbar:

Of course, that trick doesn't apply to regular web pages. Is there also a problem with web pages?

more options

Dear jscher2000, what you suggest is a helpful workaround, thank you very much.

I have in the meantime been able to narrow down the problem a bit: the issue appears to occur only with pdf files that were generated using LaTeX, whereas websites and other types of pdfs seem to print just fine. I tried with a bunch of randomly selected papers from arxiv.org as well as some of my own LaTeX papers on the local hard disk, and none of them print correctly, so it's unlikely that it is just related to a particular LaTeX template.

I'm a bit surprised though that the Firefox pdf viewer should have a problem with something as ubiquitous as standard LaTeX fonts...

jscher2000 said

Hi XiaYang, that particular example is a PDF. Firefox's built-in PDF viewer sometimes has problems with fonts specified in PDFs, so in case of any odd behavior, it is better to open the PDF in Apple's Preview app or in Adobe Reader and print from there instead. You can use the Download button on the viewer's black toolbar: Of course, that trick doesn't apply to regular web pages. Is there also a problem with web pages?

由XiaYang于修改

more options

Print Preview with this PDF file is working fine here on Linux.

Your Print Preview screenshot shows characters in the PUA (Private Use Area; E000-E8FF) code block that is usually reserved for downloaded fonts. If I check the font used in the PDF viewer (tab) then I see font-family: sans-serif; as inline CSS code.

more options

Thank you cor-el. Indeed, when I open the file in Firefox's PDF viewer, I get the same "font-family: sans-serif" information, and the document displays correctly.

But when I try to print or save as pdf, it somehow fails to properly embed the LaTeX fonts. The resulting pdf is huge (80MB vs the normal 4MB), and Adobe Acrobat tells me that the only embedded font is Times-Roman (missing a long list of embedded LaTeX fonts compared to the original pdf). Not sure if this information helps.

I've also tried reinstalling my LaTeX distribution from scratch, but that didn't help either.