updmap rfemove PS-Fontname

Hartmut Henkel <[email protected]>
Newsgroups gmane.comp.tex.tetex.beta
Message-ID <[email protected]>
Hi,

it seems that these problems

  # remove PS-Fontname from ExtendFont / SlantFont lines (works around a
  # pdftex bug)

which are specially treated in updmap, have gone. E. g. changing the
code to

  #{ <$tmp3 egrep '".*[^A-Za-z](Slant|Extend)Font([^A-Za-z].*"|")' | sed 's@[   ][^     ]*@@'
  #  <$tmp3 egrep -v '".*[^A-Za-z](Slant|Extend)Font([^A-Za-z].*"|")'
  #} | normalizeLines >> "$pdftexoutputdir/pdftex_ndl14.map"
  <$tmp3 normalizeLines >> "$pdftexoutputdir/pdftex_ndl14.map"
  #{ <$tmp7 egrep '".*[^A-Za-z](Slant|Extend)Font([^A-Za-z].*"|")' | sed 's@[   ][^     ]*@@'
  #  <$tmp7 egrep -v '".*[^A-Za-z](Slant|Extend)Font([^A-Za-z].*"|")'
  #} | base14RemovePSName | normalizeLines >> "$pdftexoutputdir/pdftex_dl14.map"
  <$tmp7 normalizeLines >> "$pdftexoutputdir/pdftex_dl14.map"

allows to replace embedded slanted/extended fonts from included PDF
files without problems. I tried it with these files, among others:

% u.tex
\pdfcompresslevel=0 \nopagenumbers
\pdfmapline{= phvro8r Helvetica "0.167 SlantFont TeXBase1Encoding ReEncodeFont" <8r.enc <phvr8a.pfb}
\font\phv phvro8r at 20pt \phv
\input tufte \bye

% v.tex, loads u.pdf with font replacement
\pdfcompresslevel=0 \nopagenumbers
\pdfmapline{= phvro8r Helvetica "0.167 SlantFont TeXBase1Encoding ReEncodeFont" <8r.enc <phvr8a.pfb}
\pdfximage width \hsize{u.pdf} \hbox{\pdfrefximage\pdflastximage}
\bye

% w.tex, loads u.pdf with warning, original font kept, ok
\pdfcompresslevel=0 \nopagenumbers
\pdfmapline{= phvro8r Helvetica "0.167 SlantFont TeXBase1Encoding ReEncodeFont" <8r.enc}
\pdfximage width \hsize{u.pdf} \hbox{\pdfrefximage\pdflastximage}
\bye

Regards, Hartmut
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.