[pdftex] ARGHH! [was: Patch for pdftex for subsetted font printing problem]

Tom Kacvinsky tjk at ams.org
Tue Jun 19 19:01:07 CEST 2001


Tom Kiffe gave me a problem file that pointed out a problem with my patch
(and now that I think about it, exhibits how *weird* the Acrobat problem
really is).

I am in the midst of figuring out how to fix the problem.  The issue only
arises when the subrs start with RD (-|) and end with something other
than the matching end token NP (|, respectively).  And this only happens
with *old* fonts.

Tom

On Fri, 15 Jun 2001, Tom Kacvinsky wrote:

> Hi all,
>
> Attached is a patch for pdftex 3.14159-14h-released-20010417 that fixes the
> following problem:
>
>   PDF files generated by pdftex in which Type 1 fonts are subsetted do
>   not print correctly from Acrobat (Reader) 5.0.
>
> Having been down this road before (sending a patch in for pdftex whilst
> Thanh is away), I feel compelled to state that this patch is for those who
> want to use it, and I am not asking for it to be the definitive, official
> fix for this problem.
>
> With that said, the patch just simply fills in the gaps in the Subrs array
> with subroutines do nothing.  This does not yield the smallest possible
> subsetted font. To do that, one needs to renumber all of the subroutines,
> and make sure the charstrings which call these renumbered subroutines use
> the new numbers, etc...
>
> The limited tests I have run indicate the patch does work and does not
> introduce any new bugs.  Comments and more testing would be appreciated.
>
> Regards,
>
> Tom
>




More information about the pdftex mailing list