| 1 |
% $Id: test-pkmap.tex 790 2018-01-02 00:12:04Z karl $ |
| 2 |
% Public domain. |
| 3 |
% Test map files with bitmap (i.e., Type 3) fonts. |
| 4 |
|
| 5 |
% A thread starting here: |
| 6 |
% https://tug.org/pipermail/pdftex/2016-July/009064.html |
| 7 |
% and continuing on: |
| 8 |
% https://tug.org/pipermail/pdftex/2016-August/009065.html |
| 9 |
% https://mailman.ntg.nl/pipermail/ntg-pdftex/2017-August/004183.html |
| 10 |
% https://mailman.ntg.nl/pipermail/ntg-pdftex/2017-December/004189.html |
| 11 |
% discusses a patch for supporting an encoding file with Type 3 fnts. |
| 12 |
% |
| 13 |
% For comparison, the PDF made before the patch was applied is saved |
| 14 |
% here as prepatch.pdf. |
| 15 |
% |
| 16 |
% The default PK resolution is 72, so we made cmb10.72pk et al. in this |
| 17 |
% directory; see the Makefile. |
| 18 |
|
| 19 |
% basic typesetting: |
| 20 |
\pdfoutput=1 \catcode`\{=1 \catcode`\}=2 |
| 21 |
\hsize=6pc \parfillskip=0pt plus1fil \vsize=6in \lineskip=1pc |
| 22 |
\pdftrailerid{} |
| 23 |
\pdfcompresslevel=0 \pdfobjcompresslevel=0 |
| 24 |
|
| 25 |
\pdfglyphtounicode{ffi}{0066 0066 0069} %no need for all: \input glyphtounicode |
| 26 |
\pdfgentounicode=1 |
| 27 |
|
| 28 |
\pdfmapline{cmr10}% type3 map without encoding - no ToUnicode, no /ffi. |
| 29 |
\font\cmr=cmr10 \noindent \cmr ffi |
| 30 |
|
| 31 |
\pdfmapline{cmb10 <7t.enc}% type3 map with encoding |
| 32 |
\font\cmb=cmb10 \noindent \cmb ffi |
| 33 |
|
| 34 |
% scaled tfm of previously defined tfm: the Type 3 should not be |
| 35 |
% geometrically scaled, but instead should use a separately-generated |
| 36 |
% cmr10.360pk (50*72/10). |
| 37 |
\font\big = cmr10 at 50pt \big big |
| 38 |
\end |