pdftex[859] branches/stable: bugfix: character protrusion does not

commits+thanh at tug.org commits+thanh at tug.org
Sat Aug 21 21:37:11 CEST 2021


Revision: 859
          http://tug.org/svn/pdftex?view=revision&revision=859
Author:   thanh
Date:     2021-08-21 21:37:10 +0200 (Sat, 21 Aug 2021)
Log Message:
-----------
bugfix: character protrusion does not work with chars having autokern (\pdfprependkern/\pdfappendkern)

Modified Paths:
--------------
    branches/stable/source/src/texk/web2c/pdftexdir/pdftex.web
    branches/stable/tests/19-letterspacefont/Makefile
    branches/stable/tests/Common.mak

Added Paths:
-----------
    branches/stable/tests/20-autokern/
    branches/stable/tests/20-autokern/Makefile
    branches/stable/tests/20-autokern/f.tex

Modified: branches/stable/source/src/texk/web2c/pdftexdir/pdftex.web
===================================================================
--- branches/stable/source/src/texk/web2c/pdftexdir/pdftex.web	2021-07-25 16:38:40 UTC (rev 858)
+++ branches/stable/source/src/texk/web2c/pdftexdir/pdftex.web	2021-08-21 19:37:10 UTC (rev 859)
@@ -24389,7 +24389,7 @@
             (replace_count(#) = 0)) {an empty |disc_node|}
         or ((type(#) = math_node) and (width(#) = 0))
         or ((type(#) = kern_node) and
-            ((width(#) = 0) or (subtype(#) = normal)))
+            ((width(#) = 0) or (subtype(#) = normal) or (subtype(#) = auto_kern)))
         or ((type(#) = glue_node) and (glue_ptr(#) = zero_glue))
         or ((type(#) = hlist_node) and (width(#) = 0) and (height(#) = 0) and
             (depth(#) = 0) and (list_ptr(#) = null))

Modified: branches/stable/tests/19-letterspacefont/Makefile
===================================================================
--- branches/stable/tests/19-letterspacefont/Makefile	2021-07-25 16:38:40 UTC (rev 858)
+++ branches/stable/tests/19-letterspacefont/Makefile	2021-08-21 19:37:10 UTC (rev 859)
@@ -1,9 +1,5 @@
 include ../Common.mak
 
-pdftex2 ?= /usr/local/texlive/2021basic/bin/local/pdftex2
-# pdftex2 is a copy of ../../source/build-pdftex/texk/web2c/pdftex
-# why? I have only mactex basic installed, not whole tl
-
 prog = $(pdftex2) -fmt pdfetex
 
 test:

Added: branches/stable/tests/20-autokern/Makefile
===================================================================
--- branches/stable/tests/20-autokern/Makefile	                        (rev 0)
+++ branches/stable/tests/20-autokern/Makefile	2021-08-21 19:37:10 UTC (rev 859)
@@ -0,0 +1,12 @@
+include ../Common.mak
+
+prog = $(pdftex2) -fmt pdfetex
+
+test:
+	$(prog) ./f.tex
+
+fmt:
+	$(pdftex2) -ini '*pdfetex.ini'
+
+clean:
+	$(clean)

Added: branches/stable/tests/20-autokern/f.tex
===================================================================
--- branches/stable/tests/20-autokern/f.tex	                        (rev 0)
+++ branches/stable/tests/20-autokern/f.tex	2021-08-21 19:37:10 UTC (rev 859)
@@ -0,0 +1,32 @@
+\hsize=7cm
+\parindent=0pt
+\tracingoutput1
+\showboxdepth\maxdimen
+\showboxbreadth\maxdimen
+\def\test#1{%
+   \vbox to 0pt{\vrule height 1cm\hfill\vrule height 1cm \vss}
+   \leavevmode\llap{#1 }\ignorespaces}
+
+\test1
+\pdfappendkern=1
+\pdfprependkern=1
+\pdfprotrudechars=2
+\knbccode\font`\A=150
+\knaccode\font`\A=150
+\lpcode\font`\A=500
+\rpcode\font`\A=500
+text text text text text
+text text text AtextA AtextA
+
+\test2
+\pdfprotrudechars=0
+\knbccode\font`\-=250
+\knaccode\font`\-=250
+text text text text text text
+text text text-text-text
+
+\test3
+text text text text text text
+text text-text\-text-text
+
+\bye

Modified: branches/stable/tests/Common.mak
===================================================================
--- branches/stable/tests/Common.mak	2021-07-25 16:38:40 UTC (rev 858)
+++ branches/stable/tests/Common.mak	2021-08-21 19:37:10 UTC (rev 859)
@@ -27,6 +27,9 @@
 diff = diff --text -c0
 
 pdftex = ../../source/build-pdftex/texk/web2c/pdftex
+pdftex2 ?= /usr/local/texlive/2021basic/bin/local/pdftex2
+# pdftex2 is a copy of $(pdftex)
+# why? to be able to use the texmf tree from mactex basic with minimal fuss
 ttf2afm = ../../source/build-pdftex/texk/web2c/ttf2afm
 #pdftex = $(W)/texk/web2c/pdftex
 prog = $(env) $(pdftex) -ini -interaction=nonstopmode



More information about the pdftex-commits mailing list.