Files
texrra-engine/fixtures/pdftex-margin-protrusion/font-scope.tex
T

32 lines
938 B
TeX

\pdfoutput=1
\pdfadjustspacing=0
\pdfprotrudechars=0
\font\face=cmr10 at 10pt
\font\bigface=cmr10 at 20pt
\face
\begingroup
\lpcode\face`A=-1200
\rpcode\face`!=1200
\pdfprotrudechars=2
\message{!scope:inside:[\the\lpcode\face`A]/[\the\rpcode\face`!]/[\the\pdfprotrudechars]:end!}
\endgroup
\message{!scope:outside:[\the\lpcode\face`A]/[\the\rpcode\face`!]/[\the\pdfprotrudechars]:end!}
\message{!scope:other-font:[\the\lpcode\bigface`A]/[\the\rpcode\bigface`!]:end!}
\lpcode\face`A=-125
\rpcode\face`!=400
\lpcode\bigface`A=-125
\rpcode\bigface`!=400
\pdfprotrudechars=1
\parfillskip=0pt
\rightskip=0pt plus 1fil
\hsize=45pt
\def\probe#1{%
\setbox0=\vbox{#1\noindent A!\par\global\setbox2=\lastbox}%
\message{!scope:line:[\leftmarginkern2]/[\rightmarginkern2]:end!}%
\setbox3=\hbox{\unhcopy2}%
\message{!scope:unboxed:[\leftmarginkern3]/[\rightmarginkern3]:end!}%
\shipout\vbox{\copy2\box3}}
\probe\face
\probe\bigface
\end