PDF font bug in Preview

I've put Leopard on all 9 of my macs, and I love it.

On one of them (unfortunately the macbook pro that I use all the time), I'm having a nasty bug with PDFKit.

When I open a PDF file that I made in pdflatex in Preview, sometimes it looks fine, but sometimes the fonts are all wrong and sans-serif-y. In many occasions, I an switch back and forth between the good fonts and the bad fonts JUST BY SWITCHING AWAY FROM PREVIEW AND SWITCHING BACK.

bad:

http://www.screenshots.cc/view_image/9eeb21311/ThisLooksAwful.png

good:

http://www.screenshots.cc/view_image/c83d91304/ThisLooksGreat.png

Has anyone seen anything like this? The bad fonts propagate themselves all the way to a printed page.

Macbook Pro, Mac OS X (10.5)

Posted on Nov 2, 2007 5:24 AM

Reply
30 replies

Nov 2, 2007 9:40 AM in response to Grigori Humphreys

I have seen a similar thing on my MBP that I just upgraded to Leopard. For me, the problem is when I try to use Latex Equation Editor (LEE) or Latexit (either one). First of all, neither of them really works. LEE normally comes up with a nice fancy set of equations when you start it. Now, on Leopard, the text looks horrible and many special characters are missing. And then, once I have started LEE, any TeX document that I look at in Preview is in san serif with missing math characters. The files look fine in Acrobat. It would appear that it is some kind of font caching issue, since after a reboot, preview works fine on the files that it had failed on before. That is, until I fire up LEE or Latexit. I have searched the various forums, but I haven't found a similar problem until now.

I don't know enough about the font system on Macs to know more than that. I did run Font book and discovered that there were many duplicate fonts, at least some of which seemed incomplete. All were in /Library. I disabled the 'partial' fonts, but that didn't fix the problem. So I am at a loss here.

Nov 4, 2007 4:31 AM in response to rbascuas

Okay, I fixed the problem by deleting all of the font caches on my system.

I blew away /Library/Caches/com.apple.ATS (which seems to be left over from Tiger)
and a couple of folders in /var/folders.

at the terminal, type

getconf DARWIN USER_CACHEDIR

and delete that directory.

I also deleted the results of

getconf DARWIN USER_TEMPDIR

you can do this in one step by typing:

rm -rf `getconf DARWIN USER_CACHEDIR`

and similarly for the other one (those are backwards-single quotes).

Then reboot! The reboot takes a while as it rebuilds the font cache, but everything seems OK now.

Nov 9, 2007 5:25 PM in response to rbascuas

Indeed, wiping out the caches is not a permanent solution.

I found a couple of threads in some tex newsgroups that discuss this problem. There doesn't seem to be a resolution. There was some discussion that Latex Equation Editor is no longer being developed, but LaTeXIt, a similar program shows a similar font corruption problem. Fonts are fine in Preview until using LaTeXIt (or Latex Equation Editor), when they get 'corrupted'. By that I mean that documents viewed in Preview often come up sans-serif, regardless of the original font, and often special characters, such as arrows above letters (indicating vectors) disappear. Keynote files that use those characters (from, for example, using LaTeXIt under Tiger) show corruption. Rebooting (and possibly simply logging out and back in) 'cures' the problem, ie, Preview and Keynote are once again happy. During all this, Acrobat is always happy.

This is kind of painful, since I give physics lectures using Keynote, and things like integral and summation signs and vectors and such are kind of nice to have around.

Someone has got to know what is going on!

Dec 21, 2007 9:38 AM in response to Grigori Humphreys

Yes - I've had the same problem - all files created with pdflatex or pdftex don't seem to work with Preview. This includes files created on other machines - and a lot of documents on physics websites. This is despite the fact that these documents have fonts embedded - so the font set up should not matter.

I've tried all of the ideas suggested for resetting font caches etc - all to no effect. In the end I've had to set up to use Adobe PDF reader as the default to get working again.

This looks like a definite bug in the new version of Preview to me.

Dec 22, 2007 5:48 AM in response to Grigori Humphreys

I've had a similar problem too. I use texshop with pdftex to create pdf files. I am running leopard on a macbook. As I understand files created pdftex have fonts embedded, although only the subset is embedded. My preview displays fonts correctly without problem, BUT when I print out fonts become sans serify. On the display it looks fine, on the print out its all wrong!! why would that be??

Jan 21, 2008 4:50 AM in response to sinistrum

I am still struggling with the same problem. Fonts in preview display OK, BUT would not print. I found that the problem is not only with preview. Printing the PDF file from Adobe Reader, partially solves the problem. At least palatino font is printed correctly, but still lots of annoying stuff: like greek letters not printing, and for some reason section headers printed sans-serify…
Also this happens with downloaded pdfs, presumably not created with latex.

Jan 28, 2008 5:12 AM in response to sinistrum

I get a similar effect with Preview.app v.3.0.9 (409). Special Norwegian characters (æøå) in Arial text either show up like inverted question marks (¿) or space. The document was produced by MS Word / LaserWriter 8 H1 8.7.1 / Destiller 3.01 (for Mac) according to document properties. The macs I use for viewing have Tiger 10.4.10 or 11 on them.

Has anyone here reported this bug to Apple?

Ingmar

Feb 5, 2008 9:03 AM in response to Ingmar Hemsen

This is a constant problem for us too (on our new Leopard only machines), any program that uses the OS to display PDFs will keep dropping type.

This means the finder, preview, keynote and mail applications. Our placed PDFs in keynote slides don't show type. In finder windows, the type in pdfs (the icon) is sporadic at best, in mail and entourage the type on pdfs in email is also sporadic. Preview itself is completely hot or miss. But open the same pdf in acrobat and viola, perfect.

Clearing the font caches and restarting is only a temporary fix.

This is an inexcusable bug that makes doing professional design work (the sole reason we have macs) extremely difficult. I wish we had not upgraded any of our computers.

Feb 24, 2008 7:36 PM in response to wolbert

I have had the same problem since I purchased my MacBook Pro with Leopard in October. I only use Word and Preview but scientific papers that contain equations are corrupted in Preview, essentially over-written with other fonts (just like the images above). I have tried erasing my user cache and rebuilding it but this only works temporarily. It is a huge problem for me because I must give presentations and publish papers, but I never know when my fonts will be corrupted. Sometimes logging in and out fixes the problem but this can't be the best solution. My acrobat is largely OK as long as I don't save one of the corrupted files in Preview.

This bug is definitely not fixed!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

PDF font bug in Preview

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.