OS X 10.5 font woes
Feb. 5th, 2008 05:09 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Since moving to a Mac a bit over a year ago, I've had only a few reasons to look back (the business with the HP LJ1022 printer being one of them). I'm now rather close to the end of my tether, and the reason is fonts.
As an academic and a computer scientist, I end up writing quite a lot of papers and presentations with maths in them. Like any sensible person, I use LaTeX for typesetting the maths; it's a lot easier to type $\sum_{i=0}^{i=n-1} i^2$ than to wrestle with the equation editor in Word. I've also been using LaTeX for rendering mathematical expressions in lecture slides; there are two tools - LaTeXit and LaTeX Equation Editor - which make putting maths in Powerpoint or KeyNote a drag-and-drop operation.
However, I've spent quite a lot of time over the last week trying to debug a problem with the font rendering of TeX-generated PDF files on OS X. If I wrote a LaTeX file containing the following:
\documentclass{article} \begin{document} \section{This is a test} \[e = mc^2 \rightarrow \chi \pi \ldots r^2 \] \end{document}
then I'd expect it to render something like this:
Preview renders it like that, but not reliably - perhaps one time in eight. The rest of the time, it randomly substitutes a sans serif font for the various Computer Modern fonts. Sometimes it looks like this (missing the italic font):
Sometimes it looks like this (missing the bold and italic fonts):
And sometimes it looks like this (missing the bold and symbol fonts):
It isn't predictable which rendering I get. The problem also isn't limited to CM, but appears whenever you have a subset of a Type1 font embedded in PDF (on my machine, at least); TeX isn't the problem. The problem didn't exist on 10.4. The best guess from the Mac communities is that it's a cache corruption problem with the OS X PDF-rendering component on 10.5 (which would explain why I see the same problem in LaTeXit, LEE and Papers, but not in Acrobat).
I really don't see how Apple could have let a release out of the door with a bug like this - this is surely a critical bug for anyone in publishing.
Edited to add links:
no subject
Date: 2008-02-05 10:01 pm (UTC)no subject
Date: 2008-02-05 10:05 pm (UTC)You could also try going the long way via:
You should see the problems as soon as you open the resulting PDF file in Preview.app
no subject
Date: 2008-02-05 10:13 pm (UTC)no subject
Date: 2008-02-05 10:14 pm (UTC)no subject
Date: 2008-02-05 10:25 pm (UTC)no subject
Date: 2008-02-05 10:45 pm (UTC)Hmm. Time to play with LEE, I guess... Nope, that works fine, too.
Hard to tell how much hope that might give you, bearing in mind I didn't have any of the LaTeX stuff installed when I upgraded, of course. But yes, a Tiger machine upgraded to Leopard with "Archive and Install" seems to pass the test of generating your example equation quite happily into PDF using pdflatex, LaTeXiT, and LEE, and I've tried it a few times with each, finishing off with re-generating from my test file using the latex/dvips/pstopdf route. All the results look fine in Preview.
Hope that helped in some way. Of course, it may be some strange spurious thing which happens when doing a particular bit of typesetting and then breaks things forevermore...
no subject
Date: 2008-02-06 09:28 am (UTC)no subject
Date: 2008-02-06 03:19 am (UTC)MacTEX + TeXShop (+ XeTeX for ligatures) = win.
no subject
Date: 2008-02-06 07:33 am (UTC)