pdftex[902] branches/stable: bugfix: CharSet misses composite chars

commits+thanh at tug.org commits+thanh at tug.org
Fri Feb 17 10:27:43 CET 2023


Revision: 902
          http://tug.org/svn/pdftex?view=revision&revision=902
Author:   thanh
Date:     2023-02-17 10:27:43 +0100 (Fri, 17 Feb 2023)
Log Message:
-----------
bugfix: CharSet misses composite chars from SEAC operators in Type1 fonts

Modified Paths:
--------------
    branches/stable/source/src/texk/web2c/pdftexdir/writet1.c

Added Paths:
-----------
    branches/stable/tests/31-CharSet-miss-composite-chars/
    branches/stable/tests/31-CharSet-miss-composite-chars/Makefile
    branches/stable/tests/31-CharSet-miss-composite-chars/f.tex

Modified: branches/stable/source/src/texk/web2c/pdftexdir/writet1.c
===================================================================
--- branches/stable/source/src/texk/web2c/pdftexdir/writet1.c	2023-02-17 09:26:32 UTC (rev 901)
+++ branches/stable/source/src/texk/web2c/pdftexdir/writet1.c	2023-02-17 09:27:43 UTC (rev 902)
@@ -1246,6 +1246,10 @@
                 cc_clear();
                 mark_cs(standard_glyph_names[a1]);
                 mark_cs(standard_glyph_names[a2]);
+                if (fd_cur->gl_tree != NULL) {
+                    avl_probe(fd_cur->gl_tree, standard_glyph_names[a1]);
+                    avl_probe(fd_cur->gl_tree, standard_glyph_names[a2]);
+                }
                 break;
             default:
                 if (cc->clear)

Added: branches/stable/tests/31-CharSet-miss-composite-chars/Makefile
===================================================================
--- branches/stable/tests/31-CharSet-miss-composite-chars/Makefile	                        (rev 0)
+++ branches/stable/tests/31-CharSet-miss-composite-chars/Makefile	2023-02-17 09:27:43 UTC (rev 902)
@@ -0,0 +1,7 @@
+include ../Common.mak
+
+test:
+	$(pdftex2) -ini f.tex
+
+clean:
+	$(clean)

Added: branches/stable/tests/31-CharSet-miss-composite-chars/f.tex
===================================================================
--- branches/stable/tests/31-CharSet-miss-composite-chars/f.tex	                        (rev 0)
+++ branches/stable/tests/31-CharSet-miss-composite-chars/f.tex	2023-02-17 09:27:43 UTC (rev 902)
@@ -0,0 +1,14 @@
+\input plain.tex
+\input pdftexconfig.tex
+\input pdftexmagfix.tex
+
+\pdfcompresslevel=0
+\pdfobjcompresslevel=0
+\footline={}
+
+\pdfmapline{DejaVuSerif-tlf-t1--base DejaVuSerif " AutoEnc_6paffcekw62ffq4g6cgalfhbtd ReEncodeFont " <[dejavuserif_t1-type1.enc <DejaVuSerif.pfb}
+
+\font\x = DejaVuSerif-tlf-t1--base
+\x \char"E9 \end
+
+\bye



More information about the pdftex-commits mailing list.