[NTG-pdftex] pdftex-1.40.0-alpha-20051221

w.m.l at gmx.net w.m.l at gmx.net
Wed Dec 21 14:03:57 CET 2005


On 21.12.2005 00:33, Martin Schröder wrote:
> - has a large patch from Thanh

Very nice to see this included!
Here is my bug collection for the new extensions:

%-----------------------------------------------------
% 1) "This can't happen (flushing)" with
%     kerning+expansion+ligatures:
%-----------------------------------------------------
\pdfadjustspacing=1
\pdffontexpand\font 20 20 4 autoexpand
\pdfappendkern=1
\knaccode\font`i=100

\hsize10em
foo fii foo foo foo foo
%% but this works:
%foo f{}ii foo foo foo foo
\bye
%-----------------------------------------------------


%-----------------------------------------------------
% 2) kerning will prevent hyphenation
%    (this is a major drawback, IMHO)
%-----------------------------------------------------
\showhyphens{pdftex}
{
  \pdfprependkern=1
  \knbccode\font`e=100
  \showhyphens{pdftex}
}
{
  \pdfappendkern=1
  \knaccode\font`e=100
  \showhyphens{pdftex}
}
\bye
%-----------------------------------------------------


%-----------------------------------------------------
% 3) no kerning before or after ligatures:
%-----------------------------------------------------
\pdfprependkern=1
\pdfappendkern=1
\def\setkn#1{%
   \knbccode\font #1 = 200\relax
   \knaccode\font #1 = 200\relax
}
\setkn{`a}
\setkn{11} % ff
\setkn{12} % fi
\setkn{`z}

afffiz\par
a\char11 \char12 z
\bye
%-----------------------------------------------------


%-----------------------------------------------------
% 4) appending a kern prevents addititonal spacing:
%-----------------------------------------------------
\pdfadjustinterwordglue=1
\knbscode\font`\e=1000

The test

\pdfappendkern=1
\knaccode\font`\e=1

The test
\bye
%-----------------------------------------------------

That's it ;-)


Best regards,
Robert.


More information about the ntg-pdftex mailing list