[NTG-pdftex] [PATCH v3] pdftex - Add support for encfile and \pdfgentounicode for PK fonts

Pali Rohár pali.rohar at gmail.com
Wed Mar 29 10:53:33 CEST 2017


On Tuesday 28 March 2017 22:19:40 Karl Berry wrote:
> Hi Pali,
> 
>     It is even documented in pdftex-t.tex
> 
> Good reading. I never internalized that piece of information, never
> having had occasion to care about "scalable Type 3" fonts.
> 
> Map files: I categorically decline to make any changes whatsoever to
> map file syntax.
> 
> PGC files: Hans has replied. I am not aware of any other usage besides
> his. I'd be ok with introducing a \pdf... boolean that turns off PGC and
> scalable Type 3, which I gather is what would solve the immediate
> problem for you. Making such a change at this point in the development
> process for this year, though ... I don't know.

So... we can introduce \pdfpkscalable register (or somebody can invent
better name) and when set to 0, then PK (and also PGC) fonts defined in
\pdfmapline and \pdfmapfile will be marked as non-scalable.

Currently any font which is not defined in \pdfmapline or \pdfmapfile is
automatically marked as non-scalable.

> Overall: I have neither energy nor interest in doing anything regarding
> bitmap fonts. If you can devise a further patch that will improve the
> situation, then good. If not, I guess the situation will stay as it
> is. (Well, I'm willing to revert your patch, but I doubt that is what
> you want.)

If above solution is OK and there is no problem with it, I can try to
implement it and provide patch.

My patch (which was already merged) is working fine and applies only for
scalable PK fonts. If there is no problem with it then I do not see
reason for revert.

> I realize the documentation as it stands now is not entirely correct,
> but since the desired outcome and possible changes remain unclear to me,
> I don't want to tweak it further now.

My idea was to enable specifying scalable PK fonts with call
\pdfmapline{cmr10} as is already written in pdftex documentation. This
should be IIRC very simple and I can prepare patch for it.

But if such support as written in pdftex documentation is not something
which should be enabled in pdftex, then removing those parts from
documentation should be done.

So pdftex maintainers/developers should decide for one those steps.

-- 
Pali Rohár
pali.rohar at gmail.com


More information about the ntg-pdftex mailing list