[NTG-pdftex] pdftex-1.20-rc4

The Thanh Han The Thanh Han <hanthethanh@myrealbox.com>
Sun, 30 May 2004 06:54:34 +0700


I tested the following file

============================================
\let\normalfont\font
\def\font#1=#2 {%
  \message{Adding mapline: +#2 <#2.pfb}%   
  \pdfmapline{+#2 <#2.pfb}\normalfont#1=#2 }

\pdfoutput=1
\font\f=cmx10 at 100pt
\f Hello
\bye
============================================

and it seems to be ok. What error did you get?

The \pdfmapfile primitive is very simple. It simply scans a <balanced text>
and calls a  C-subroutine to process it. 

Thanh

On Thu, May 27, 2004 at 11:10:06PM +0200, Hans Hagen wrote:
> At 10:16 27/05/2004, Nagy Bence wrote:
> >> I uploaded pdftex-1.20a-rc4 to pdftex.sarovar.org/src. This version
> >> fixes the problem with finding fonts in included pdf, as discussed
> >> before. I also did some (heavy) cleaning up in the code handling
> >> fonts, so expect the unexpected.
> >
> >I wrote a small macro to handling the maplines from my tex file, I want
> >to get the mapline in the form "fontname <fontname.pfb". But it is not
> >working.
> >
> >\let\normalfont\font
> >\def\font#1=#2 {%
> >  \message{Adding mapline: +#2 <#2.pfb}%
> >  \pdfmapline{+#2 <#2.pfb}\normalfont#1=#2 }
> 
> it seems that the map line parser looks over the } and wants a \relax; a 
> bug?
> 
> % interface=en
> 
> \starttext
> 
> \ifx\normalfont\undefined \let\normalfont\font \fi
> 
> \font\xxxx=cmr10 at 100pt
> 
> \def\font#1=#2 %
>   {\message{Adding mapline: +#2 <#2.pfb}%
>    \pdfmapline{+#2 <#2.pfb}\relax
>    \normalfont#1=#2 }
> 
> \font\test=cmr10 at 100pt
> 
> \test oeps
> 
> \stoptext
> 
>