[NTG-pdftex] [ pdftex-Bugs-274 ] \unhbox kills protrusion

noreply at sarovar.org noreply at sarovar.org
Mon Jan 31 03:09:40 CET 2005


Bugs item #274, was opened at 2005-01-31 02:09
You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=274&group_id=106

Category: hz
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Robert (schlcht)
Assigned to: The Thanh Han (hanthethanh)
Summary: \unhbox kills protrusion

Initial Comment:
Protrusion will break when boxes containing protruded
characters are \unhbox'ed. I've stumbled upon this when
using edmac/ledmac, which decomposes each paragraph
into lines, then reassembling them.

I wasn't sure whether protrusion is supposed to survive
this treatment but it does if one uses \unhcopy instead
of \unhbox.

Here's a greatly reduced example:
%--------------------------------------------
\font\testfont=cmr10 \testfont
\pdfprotrudechars=2
\rpcode\font`\-=1000
\parindent0pt
\hsize=126pt

\newbox\testline
\newbox\testbox
%
\setbox\testbox\vbox{%
   Margin kerning is the adjustments
   of the characters at the
   margins of a typeset text.
}
\loop\ifvbox\testbox
   \setbox\testline=\vsplit\testbox to\baselineskip
   \unvbox\testline
   \setbox\testline=\lastbox
   \hbox to\hsize{\unhcopy\testline}% OK
   \hbox to\hsize{\unhbox\testline} % not OK
\repeat

\bye
% --------------------------------------------------


Regards,
Robert  <w.m.l[at]gmx.net>


----------------------------------------------------------------------

You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=274&group_id=106


More information about the ntg-pdftex mailing list