[NTG-pdftex] [ pdftex-Bugs-115 ] character protrusion: some characters will not be protruded

noreply at sarovar.org noreply at sarovar.org
Fri Sep 10 23:57:24 CEST 2004


Bugs item #115, was opened at 2004-09-11 03:27
You can respond by visiting: 
http://sarovar.org/tracker/?func=detail&atid=493&aid=115&group_id=106

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: character protrusion: some characters will not be protruded

Initial Comment:
Some characters will not be protruded into the right
margin, namely: `-', `--', and `---', if entered like
that. When they occur as \hyphenchar, or as a single
character (e.g. \char123), everything's fine. With the
EC fonts, the same happens for some quote characters.

Here's a plain TeX file showing the problem:

----------------------------------------------------
\tracingoutput 1
\showboxbreadth \maxdimen
\showboxdepth \maxdimen
\pdfprotrudechars=2
\hsize10em

\def\testprotrusion#1{#1\dotfill #1\penalty-10000}

\font\testfont=cmr10\testfont

\newcount\charcount
\charcount=0
\loop
   \rpcode\font\charcount=1000
   \advance\charcount 1
   \ifnum\charcount < 256 \repeat

\noindent
\testprotrusion{A}% OK
\testprotrusion{-}%
\testprotrusion{--}%
\testprotrusion{---}%
\testprotrusion{itworks\-likethis}%
\testprotrusion{\char123}%
\testprotrusion{\char124}%

\font\testfont=ecrm10\testfont
\charcount=0
\loop
   \rpcode\font\charcount=1000
   \advance\charcount 1
   \ifnum\charcount < 256 \repeat

\noindent
\testprotrusion{``}%
\testprotrusion{''}%
\testprotrusion{\char13}% \quotedblbase
\testprotrusion{\char18}% \quotesinglbase
\testprotrusion{Z}% OK

\bye 
----------------------------------------------------

I don't know whether that might be related, but in all
cases, something is being inserted between the
character itself and the right margin by TeX (a
discretionary for the dashes, a \kern for the quote
characters). 

(This is the same bug as reported in the dctt thread
`Randausgleich von Binde- und Trennstrich', 29.8.04)

Regards,
Robert.

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

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


More information about the ntg-pdftex mailing list