From: Michael Green <merely.ridiculous@gmail.com>
To: ntg-context@ntg.nl
Subject: pdfs with boxes instead of letters
Date: Fri, 30 Oct 2009 14:07:54 -0700 [thread overview]
Message-ID: <DB4A0B09-91E8-4DD8-9214-EE09DB2D6756@gmail.com> (raw)
In-Reply-To: <mailman.169.1256921249.22155.ntg-context@ntg.nl>
On Oct 30, 2009, Oliver Buerschaper wrote:
> > I seem to have spoken too soon. The very next document I prepared
> > had the same boxes-rather-than-letters problem.
> >
> > That said, I cleared the font caches again and, after restarting,
> > the document looked correct. Perhaps this is a coincidence. Or
> > perhaps there is something amiss with the way my computers are
> > caching fonts. Sigh.
>
> Well, if your engine is pdftex (from an unpatched TeXLive 2008) then
> chances are you're running into the nasty (TM) font cache bug:
>
> http://www.tug.org/mactex/fontcache/
>
> Oliver
The symptoms seem right: strange, unpredictable display problems with
Apple's pdf software but not Adobe's. And it's not just pdftex,
apparently. They say that luatex is affected too. That's primarily
what I use. So we have both known symptoms (sort of - they're vague)
and an allegedly known cause. Perhaps we have a diagnosis.
Here is Dick Koch, "A Fix for the Corrupt Font Cache Bug"
http://www.tug.org/mactex/fontcache/Font-Cache-Bugfix.pdf
> The “corrupt font cache bug” on OS X has been traced by Melissa
> O’Neill to a bug in pdftex, present in that program since 2004.
> The incorrect code is also used in other programs, notably dvips,
> luatex, and metapost. …
>
> The code containing the pdftex bug was used with little change in
> modern versions of dvips, so fixing the bug in dvips was not
> difficult. However, it wasn’t so easy to find the corresponding
> code in luatex and metapost. Instead of waiting for decisive fixes
> in these programs, we decided to just release the fixed pdftex and
> dvips. This should fix the bug for most users. Notice that pdftex
> is used when typesetting in “pdftex” mode and dvips is used when
> typesetting in “TeX and DVI” mode. XeTeX does not have the bug.
And in another document, "Looking over the Debugger’s Shoulders ",
Koch summarizes what they discovered this way:
http://www.tug.org/mactex/fontcache/Debugging.pdf
> Two bugs contributed to the problem. First, pdftex, dvips, luatex,
> and metapost were not correctly subsetting certain fonts. And
> second, a large number of fonts contained subroutines which did not
> conclude with a RETURN command. Many of these were created with the
> utility mmpfb, which has been patched.
Question: is this still a problem for luatex 0.44? (Please say no).
If not, perhaps I should clean my caches and use only MkII/XeTeX.
Even then, I gather that old documents created with luatex will still
be little time bombs (see Appendix, below). I guess I have to delete
all pdfs made by luatex and regenerate them as needed. That's a lot of
documents.
"Nasty" is right. Oy.
mjg
Appendix: Koch's explanation of why the font cache might become
corrupt seemingly for no reason at all.
http://www.tug.org/mactex/fontcache/Font-Cache-Bugfix.pdf
> When GUI programs display pdf files, they call Apple’s internal
> pdf routines. In turn, these routines call Apple’s font routines
> to construct bitmaps for the outline fonts. These Apple routines
> store the bitmaps in a font cache to speed up future display. For
> reasons unknown until recently, this font cache can become corrupt;
> this is “triggered” by displaying a defective pdf file. After
> that trigger, display problems persist for all files. To fix the
> problem, the font cache needs to be rebuilt, as happens when the
> machine is rebooted. Adobe Acrobat does not use Apple’s pdf
> display routines, so it is immune to the bug. ...
>
> Once you install the repaired pdftex and dvips binaries, pdf files
> created by these programs will not contain damaged fonts and thus
> won’t trigger the bug. But unfortunately, your old pdf files may
> still be damaged. In addition, users on other platforms won’t have
> the repaired binaries for some time, so pdf files sent by
> colleagues may still be damaged and trigger the bug. That is why
> you may still experience the bug from time to time until the TeX
> world catches up.
>
> It isn’t even necessary to display an old damaged pdf file to
> trigger the bug, because Apple’s QuickLook software and the
> software in Finder which gives a miniature version of the first
> page in the file browser can trigger it. If you keep experiencing
> the bug after applying the fix, you may need to retypeset files
> which you often open.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next parent reply other threads:[~2009-10-30 21:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.169.1256921249.22155.ntg-context@ntg.nl>
2009-10-30 21:07 ` Michael Green [this message]
2009-10-30 22:14 ` Taco Hoekwater
2009-10-30 23:43 ` Hans Hagen
2009-10-30 21:41 ` Michael Green
2009-10-30 22:02 ` Mojca Miklavec
[not found] <mailman.1.1256814003.16889.ntg-context@ntg.nl>
2009-10-29 16:55 ` Michael Green
2009-10-29 22:37 ` Michael Green
2009-10-30 18:02 ` Oliver Buerschaper
[not found] <mailman.138.1256773107.22155.ntg-context@ntg.nl>
2009-10-29 0:21 ` Michael Green
2009-10-29 0:29 ` luigi scarso
2009-10-29 10:56 ` Mojca Miklavec
2009-10-29 11:05 ` Wolfgang Schuster
2009-10-29 11:34 ` Arthur Reutenauer
2009-10-28 23:38 Michael Green
2009-10-28 23:49 ` Arthur Reutenauer
2009-10-28 23:56 ` luigi scarso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB4A0B09-91E8-4DD8-9214-EE09DB2D6756@gmail.com \
--to=merely.ridiculous@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).