texlive[43642] Build/source/texk/web2c/pdftexdir: embed each

commits+karl at tug.org commits+karl at tug.org
Thu Mar 30 01:48:29 CEST 2017


Revision: 43642
          http://tug.org/svn/texlive?view=revision&revision=43642
Author:   karl
Date:     2017-03-30 01:48:29 +0200 (Thu, 30 Mar 2017)
Log Message:
-----------
embed each re-encoded bitmap font separately

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
    trunk/Build/source/texk/web2c/pdftexdir/NEWS
    trunk/Build/source/texk/web2c/pdftexdir/mapfile.c
    trunk/Build/source/texk/web2c/pdftexdir/writet3.c

Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2017-03-29 22:46:11 UTC (rev 43641)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2017-03-29 23:48:29 UTC (rev 43642)
@@ -1,3 +1,11 @@
+2017-03-30  Pali Roh\'ar  <pali.rohar at gmail.com>
+
+	* writet3.c (writet3): ensure fm is non-NULL before dereferencing.
+	* mapfile.c (check_fm_entry): omit check for is_reencoded, i.e.,
+	an .enc file. This way, each bitmap font is embedded separately,
+	thus rasterized by MF instead of geometrically scaling up.
+	https://mailman.ntg.nl/pipermail/ntg-pdftex/2017-March/004125.html
+
 2017-03-29  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	* writepng.c: Fix the size of memory to allocate when writing
@@ -11,7 +19,7 @@
 	* pdftex.web (pdftex_revision, pdftex_version_string):
 	version [1.40.]18 for TL17.
 
-2017-03-16  Pali Roh\'ar <pali.rohar at gmail.com>
+2017-03-16  Pali Roh\'ar  <pali.rohar at gmail.com>
 
 	Allow .enc files for bitmap fonts, following thread at
 	http://tug.org/pipermail/pdftex/2016-June/008980.html

Modified: trunk/Build/source/texk/web2c/pdftexdir/NEWS
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/NEWS	2017-03-29 22:46:11 UTC (rev 43641)
+++ trunk/Build/source/texk/web2c/pdftexdir/NEWS	2017-03-29 23:48:29 UTC (rev 43642)
@@ -7,7 +7,8 @@
     omitting output of the default /MediaBox.
 
 - bugfixes:
-  - \pdflastmatch more reliable when there was no match
+  - \pdflastmatch more reliable when there was no match.
+  - avoid writing uninitialized memory with alpha-channel images.
 
 ---------------------------------------------------
 pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016)  (May 20, 2016)

Modified: trunk/Build/source/texk/web2c/pdftexdir/mapfile.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/mapfile.c	2017-03-29 22:46:11 UTC (rev 43641)
+++ trunk/Build/source/texk/web2c/pdftexdir/mapfile.c	2017-03-29 23:48:29 UTC (rev 43642)
@@ -288,11 +288,13 @@
         /* do not set variable |a| as this entry will be still accepted */
     }
 
-    /* if ps_name, font file and enc file are missing, drop this entry */
-    if (fm->ps_name == NULL && !is_fontfile(fm) && !is_reencoded(fm)) {
+    /* if for non-Type3 font both ps_name and font file are missing,
+       drop this entry */
+    if ((is_type1(fm) || is_truetype(fm) || is_opentype(fm))
+        && fm->ps_name == NULL && !is_fontfile(fm)) {
         if (warn)
             pdftex_warn
-                ("invalid entry for `%s': ps_name, font file, enc file all missing",
+                ("invalid entry for `%s': both ps_name and font file missing",
                  fm->tfm_name);
         a += 1;
     }

Modified: trunk/Build/source/texk/web2c/pdftexdir/writet3.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/writet3.c	2017-03-29 22:46:11 UTC (rev 43641)
+++ trunk/Build/source/texk/web2c/pdftexdir/writet3.c	2017-03-29 23:48:29 UTC (rev 43642)
@@ -1,5 +1,5 @@
 /*
-Copyright 1996-2014 Han The Thanh, <thanh at pdftex.org>
+Copyright 1996-2017 Han The Thanh, <thanh at pdftex.org>
 
 This file is part of pdfTeX.
 
@@ -295,7 +295,7 @@
         t3_char_procs[i] = 0;
         t3_char_widths[i] = 0;
     }
-    fe = fm ? get_fe_entry(fm->encname) : NULL;
+    fe = fm && fm->encname ? get_fe_entry(fm->encname) : NULL;
     glyph_names = fe ? fe->glyph_names : NULL;
     if (glyph_names)
         remove_duplicate_glyph_names(glyph_names, fm->encname);



More information about the tex-live-commits mailing list