[pdftex] pdftex - Encoding for metafont PK fonts

Ross Moore ross.moore at mq.edu.au
Mon Jun 27 10:11:01 CEST 2016


On Jun 27, 2016, at 9:25 AM, Ross Moore <ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>> wrote:

Certainly one can attach a /ToUnicode map to the /Type3 font.

And if you build it correctly, it actually works!

However there is something else missing in the way the /Font dictionary
is built in that case, which prevents Acrobat from using that CMap.
The lack of encoding vector and /CharSet may well be the problem,
or it may be some other piece of font metadata that is needed.

Try this example, using the attached .cmap  file (which is not fully
complete — I leave that to you to finish :-).
It produces the attached PDF, from which you can Copy/Paste correctly.


%%%%%%   ———  start of example TeX source ——— %%%%%
\pdfcompresslevel 0
\pdfobjcompresslevel 0
\nopagenumbers
\pdfgentounicode 1
\input glyphtounicode.tex

\font\csb=csb12
\immediate\pdfobj stream file {cs1.cmap} % 1 obj
\pdffontattr \csb{/ToUnicode \the\pdflastobj\space 0 R}
%
\csb
\char232 \char233 %\char234 %\char235 %
\char236 \char237 %\char238
\char239 \char"F2 \char"F3 \char"F4 \char"F6 \char"F8 \char"F9 \char"FA \char"FC \char"FD \char"FE \char"FF

\font\csr=csr12
\csr
\char232 \char233 %\char234 %\char235 %
\char236 \char237 %\char238
\char239

 \bye
%%%%%%   ———  end of example TeX source ——— %%%%%

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csb.tex
Type: application/octet-stream
Size: 539 bytes
Desc: csb.tex
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cs1.cmap
Type: application/octet-stream
Size: 837 bytes
Desc: cs1.cmap
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0005.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csb.pdf
Type: application/pdf
Size: 17800 bytes
Desc: csb.pdf
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0006.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0001.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pdftex/attachments/20160627/7ccac5e6/attachment-0007.htm>


More information about the pdftex mailing list