[NTG-pdftex] [PATCH] pdftex - Add new \pdfpkscalable primitive

Hans Hagen pragma at wxs.nl
Sun Apr 2 12:33:06 CEST 2017


On 4/2/2017 2:11 AM, Pali Rohár wrote:
> On Saturday 01 April 2017 09:47:56 Akira Kakuto wrote:
>> Dear Pali,
>>
>> Karl said that scalable PK fonts must be 100% unused, and
>> he does not want to introduce a new primitive in pdfTeX.
>> Thus I installed your patch with a little modification (r43667):
>> Changes in pdftex.web are minimal with no new primitive.
>> PK fonts are always non-scalable, even if they are written
>> in font-map file. Installed changes are in an attached
>> pdftex.diff.  Please review the changes.
>>
>> Best,
>> Akira
>
> Hi! Patch is OK, now all PK and PGC fonts are always non-scalable.
> Tested and it is working. So thanks! Will you update also documentation
> to reflect these changes?
>
> Anyway, now I did some checks of generated PDF files from pdftex against
> PDF specification PDF32000_2008.pdf and found one problem: /ToUnicode
> object must be in /Font object, not in /Encoding object. This probably
> comes from my ToUnicode patch which I sent in Jun 2016. Despite this
> problem, my PDF viewer (okular) was able to parse PDF and do correct
> Unicode mapping of text, so I have not caught this problem before. Below
> is correction, /ToUnicode object reference is written before calling
> pdfenddict() for /Font object.

the only browser that does tounicode (and actualtext) reliable is 
acrobat ... my experiences with other browser are that it differs per 
version so sometimes it works, sometimes not

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-pdftex mailing list