[tex-live] pkfix not EOL-savvy

Bruno Voisin bvoisin at icloud.com
Sun Jun 3 20:18:11 CEST 2018


Applying pkfix-helper and pkfix for the first time in years, after digging an old 1996 PS file prepared with dvips 5.62, I got really puzzled by the outcome: pkfix-helper doing business as usual

$ pkfix-helper intro.ps intro-pkfix-helper.ps -f "Fp=cmr10 @ 1.095X" -f "Fg=cmti10 @ 1.095X" -f "Fi=cmr10" -f "Fq = cmsl10 @1.095X" -f "Fh = cmmi10 @ 1.095X" -f "Ft=cmbx12 @ 1.728X" -f "Fj=cmr7"
Reading intro.ps ... done.
Number of Type 3 fonts encountered in included documents: 0
Total number of Type 3 fonts encountered: 21
Bitmapped fonts are typeset at 600 DPI.
Finding character widths ... done.
Reading TFM files ... done (103 TFMs in 193 scaling variations).
Matching fonts:
    Processing Fs ... done (cmsl12 @ 1X, mismatch=0.09259).
    Processing Ff ... done (cmti12 @ 1X, mismatch=0.04730).
    Processing Fo ... done (cmmi12 @ 1X, mismatch=0.05333).
    Processing Fp ... done (cmr10 @ 1.095X, mismatch=0.10846).
    Processing Fu ... done (cmbx12 @ 1.2X, mismatch=0.03960).
    Processing Fe ... done (cmbx12 @ 1X, mismatch=0.05146).
    Processing Fg ... done (cmti10 @ 1.095X, mismatch=0.03715).
    Processing Fl ... done (cmmi8 @ 1X, mismatch=0.03546).
    Processing Fi ... done (cmr10 @ 1X, mismatch=0.01755).
    Processing Fr ... done (cmsy10 @ 1.2X, mismatch=0.02969).
    Processing Fq ... done (cmsl10 @ 1.095X, mismatch=0.04676).
    Processing Fm ... done (cmr8 @ 1X, mismatch=0.01835).
    Processing Fb ... done (cmti12 @ 1.2X, mismatch=0.00740).
    Processing Fh ... done (cmmi10 @ 1.095X, mismatch=0.01453).
    Processing Fn ... done (cmex10 @ 1.2X, mismatch=0.02115).
    Processing Fa ... done (cmcsc10 @ 1.2X, mismatch=0.00723).
    Processing Ft ... done (cmbx12 @ 1.728X, mismatch=0.01844).
    Processing Fk ... done (cmsy8 @ 1X, mismatch=0.02516).
    Processing Fc ... done (cmr6 @ 1X, mismatch=0.01846).
    Processing Fd ... done (cmmi6 @ 1X, mismatch=0.00077).
    Processing Fj ... done (cmr7 @ 1X, mismatch=0.00020).

but pkfix doing nothing

$ pkfix intro-pkfix-helper.ps intro-pkfix.ps
PKFIX 1.7, 2012/04/18 - Copyright (c) 2001, 2005, 2007, 2009, 2011, 2012 by Heiko Oberdiek.
==> no fonts converted

After a couple of hours trying to figure out all sorts of explanations, it turns out it's an EOL problem: the original PS file had Mac EOLs (= CR) and the pkfix-helper output too. Changing the EOLs to Unix (= LF), then the world is back to normal:

$ pkfix intro-pkfix-helper.ps intro-pkfix.ps
PKFIX 1.7, 2012/04/18 - Copyright (c) 2001, 2005, 2007, 2009, 2011, 2012 by Heiko Oberdiek.
*** Font conversion: `cmcsc10' -> `CMCSC10'.
*** Font conversion: `cmti12' -> `CMTI12'.
*** Font conversion: `cmr6' -> `CMR6'.
*** Font conversion: `cmmi6' -> `CMMI6'.
*** Font conversion: `cmbx12' -> `CMBX12'.
*** Font conversion: `cmti12' -> `CMTI12'.
*** Font conversion: `cmti10' -> `CMTI10'.
*** Font conversion: `cmmi10' -> `CMMI10'.
*** Font conversion: `cmr10' -> `CMR10'.
*** Font conversion: `cmr7' -> `CMR7'.
*** Font conversion: `cmsy8' -> `CMSY8'.
*** Font conversion: `cmmi8' -> `CMMI8'.
*** Font conversion: `cmr8' -> `CMR8'.
*** Font conversion: `cmex10' -> `CMEX10'.
*** Font conversion: `cmmi12' -> `CMMI12'.
*** Font conversion: `cmr10' -> `CMR10'.
*** Font conversion: `cmsl10' -> `CMSL10'.
*** Font conversion: `cmsy10' -> `CMSY10'.
*** Font conversion: `cmsl12' -> `CMSL12'.
*** Font conversion: `cmbx12' -> `CMBX12'.
*** Font conversion: `cmbx12' -> `CMBX12'.
*** Merging font `CMTI12' (2).
*** Merging font `CMBX12' (3).
*** Merging font `CMR10' (2).
==> 21 converted fonts.
==> 3 merged fonts.

Not a big deal, but I really thought I was going mad.

Bruno Voisin
(not on the list)




More information about the tex-live mailing list