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

Pali Rohár pali.rohar at gmail.com
Sun Mar 26 12:54:42 CEST 2017


On Friday 17 March 2017 00:06:39 Karl Berry wrote:
>     Here is example with cmb12 and olsl12 fonts.
> 
> Thank you very much for all your work, Pali. It was easy to apply and
> confirm that .enc files could be given for bitmap fonts too.
> Committed to pdftex (r772) and TL (r43519). It'll be in this year's
> release (pretesting will start next month).
> 
> Let me know if any problems, of course. --thanks again, karl.

Hi Karl!

Now I found some strange rasterization problem with this change. I do 
not know where the problem is, but when I set enc file, then sometimes 
font in output PDF file is "pixelized" and looks ugly.

Simple test case with standard cmr10 font:

\input glyphtounicode
\pdfgentounicode=1
\pdfmapline{} % disable all Type1 fonts
%\pdfmapline{cmr10 <8r.enc}
\font\ff=cmr10
\font\fg=cmr10 at 60pt
\ff Test
\smallskip
\fg Test
\bye

If fourth line is commented then output in PDF file looks good, but has 
no enc vector and no /ToUnicode.

If fourth line is uncommented, then font at 60pt in output PDF file 
looks very very ugly (looks like wrongly rasterized), but has enc vector 
and /ToUnicode.

Any idea why inclusion of enc file for PK font cmr10 change 
rasterization for those big fonts at 60pt?

I was able to see this problem only for such big fonts e.g. at 60pt. For 
small/normal size it looks ok.

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.ntg.nl/pipermail/ntg-pdftex/attachments/20170326/fb39f37f/attachment.sig>


More information about the ntg-pdftex mailing list