% $Id: test-pkmap.tex 790 2018-01-02 00:12:04Z karl $
% Public domain.
% Test map files with bitmap (i.e., Type 3) fonts.

% A thread starting here:
%   https://tug.org/pipermail/pdftex/2016-July/009064.html
% and continuing on:
%   https://tug.org/pipermail/pdftex/2016-August/009065.html
%   https://mailman.ntg.nl/pipermail/ntg-pdftex/2017-August/004183.html
%   https://mailman.ntg.nl/pipermail/ntg-pdftex/2017-December/004189.html
% discusses a patch for supporting an encoding file with Type 3 fnts.
%
% For comparison, the PDF made before the patch was applied is saved
% here as prepatch.pdf.
% 
% The default PK resolution is 72, so we made cmb10.72pk et al. in this
% directory; see the Makefile.

% basic typesetting:
\pdfoutput=1 \catcode`\{=1 \catcode`\}=2
\hsize=6pc \parfillskip=0pt plus1fil  \vsize=6in \lineskip=1pc
\pdftrailerid{}
\pdfcompresslevel=0 \pdfobjcompresslevel=0

\pdfglyphtounicode{ffi}{0066 0066 0069} %no need for all: \input glyphtounicode
\pdfgentounicode=1

\pdfmapline{cmr10}% type3 map without encoding - no ToUnicode, no /ffi.
\font\cmr=cmr10 \noindent \cmr ffi

\pdfmapline{cmb10 <7t.enc}% type3 map with encoding
\font\cmb=cmb10 \noindent \cmb ffi

% scaled tfm of previously defined tfm: the Type 3 should not be
% geometrically scaled, but instead should use a separately-generated
% cmr10.360pk (50*72/10).
\font\big = cmr10 at 50pt \big big
\end
