What
InlineTitles/
InlineAbovetitles/
InlineBelowtitles/
InlineOvertitles do is stroke a very thick black line, then a slightly thinner white, then a slightly thinner black, etc, until the last line is very thin and black. All of this whilst the painting region is
clipped to the boundary of the relevant string.
But, alas, PDFs thus made would print very slowly on a printer used by AHB (
example complaint). So, to lessen that problem,
LineWidthThatCoversPath was written, which computes the maximum number of lines needed (so if maximum distance from an internal point to the boundary is 10pt, it starts
strokeing with a
setlinewidth of 10pt×2 rather than 50pt×2). That horrible computation (
request for algorithmic help, not usefully answered) repeatedly calls a PostScript operator
infill, which — then unknown to me — is very slow in Ghostscript (
bug report). Lordy — just can’t win!
So, now the code doesn’t do the
infill-requiring estimation if in GhostScript, nor if
InlineTitlesMaxNumberContours ≤ 2.
Edit: so in the last few posts mention has been made of needless slowless in AHB’s printer,
needless slowness in Ghostscript, and
rendering issues in Chrome. And the code also circumvents
a bug in Distiller 8. No trouble at all.