From 1fb42003cd8236c261e9a5d6faa36fa94dc4e479 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 18 Feb 2023 16:13:46 +0000 Subject: include base+accent characters in CharSet git-svn-id: svn://tug.org/texlive/trunk@65869 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/pdftexdir/ChangeLog | 10 +++++++++- Build/source/texk/web2c/pdftexdir/NEWS | 4 +++- Build/source/texk/web2c/pdftexdir/writet1.c | 9 ++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index 6f06138a6d0..1bcc3fe47da 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,3 +1,11 @@ +2023-02-14 Thanh Han The + + * writet1.c (cs_mark) : look for the composite(d) glyphs too, + to include in /CharSet. Original report from John Lienhard + for Lucida: https://tug.org/pipermail/lucida/2023-February/000922.html + Also happens with DejaVuSerif: tests/31-CharSet-miss-composite-char. + (pdftex r902) + 2023-02-14 Thanh Han The * tounicode.c (set_glyph_unicode): take new glyph_unicode_entry arg. @@ -47,7 +55,7 @@ * NEWS, * pdftex_version.h, * pdftex.web (pdftex_revision, pdftex_version_string): - version [1.40.]25 for TL23.. + version [1.40.]25 for TL23. 2023-12-28 Thanh Han The diff --git a/Build/source/texk/web2c/pdftexdir/NEWS b/Build/source/texk/web2c/pdftexdir/NEWS index e857a19fe0b..541fc744e50 100644 --- a/Build/source/texk/web2c/pdftexdir/NEWS +++ b/Build/source/texk/web2c/pdftexdir/NEWS @@ -19,7 +19,9 @@ pdfTeX 3.141592653-2.6-1.40.25 - finish omission of /Info dict when \pdfomitinfodict is not 0. - generated beginbfrange should no longer be invalid with certain characters (that is, no longer have have a last byte >255). - + - include base and accent glyph in /CharSet when the Type 1 seac + operator is used (e.g., Lucida, DejaVu Serif). + pdfTeX 3.141592653-2.6-1.40.24 (TeX Live 2022) - changes: - new primitive \showstream to redirect \show output. diff --git a/Build/source/texk/web2c/pdftexdir/writet1.c b/Build/source/texk/web2c/pdftexdir/writet1.c index 079ac369d7d..0444d46be07 100644 --- a/Build/source/texk/web2c/pdftexdir/writet1.c +++ b/Build/source/texk/web2c/pdftexdir/writet1.c @@ -1,5 +1,5 @@ /* -Copyright 1996-2018 Han The Thanh +Copyright 1996-2023 Han The Thanh This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1246,6 +1246,13 @@ static void cs_mark(const char *cs_name, int subr) cc_clear(); mark_cs(standard_glyph_names[a1]); mark_cs(standard_glyph_names[a2]); + if (fd_cur->gl_tree != NULL) { + /* base and accent characters are needed in CharSet */ + avl_probe(fd_cur->gl_tree, + (void *) standard_glyph_names[a1]); + avl_probe(fd_cur->gl_tree, + (void *) standard_glyph_names[a2]); + } break; default: if (cc->clear) -- cgit v1.2.3