![](https://secure.gravatar.com/avatar/5ee5918d6ee3618ec173b170fee3668a.jpg?s=120&d=mm&r=g)
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. --- writet3.c +++ writet3.c @@ -362,6 +362,8 @@ cptr = pdfnewobjnum(); pdf_printf("/Widths %i 0 R\n/Encoding %i 0 R\n/CharProcs %i 0 R\n", (int) wptr, (int) eptr, (int) cptr); + if (tounicode_objnum != 0) + pdf_printf("/ToUnicode %i 0 R\n", (int) tounicode_objnum); pdfenddict(); pdfbeginobj(wptr, 1); /* chars width array */ pdf_puts("["); @@ -406,8 +408,6 @@ } } pdf_puts("]\n"); - if (tounicode_objnum != 0) - pdf_printf("/ToUnicode %i 0 R\n", (int) tounicode_objnum); pdfenddict(); pdfbegindict(cptr, 1); /* CharProcs dictionary */ for (i = first_char; i <= last_char; i++) -- Pali Rohár pali.rohar@gmail.com