[pdftex] pdftex-0.12a

Akira Kakuto kakuto at fsci.fuk.kindai.ac.jp
Wed Feb 25 13:53:04 CET 2004


> I put a new release of pdftex at 
> http://vntex.sourceforge.net/private/thanh/pdftex/
> 
> (changes have been also submitted to texlive sources)

Thanks a lot.
Please apply the following patch to your writet1.c for dvips.
writet1.c for dvips had been slightly changed by Tomas and Thomas
in order to improve dvips:

--- writet1.c.orig	Wed Feb 25 07:15:38 2004
+++ writet1.c	Wed Feb 25 21:34:00 2004
@@ -68,7 +68,7 @@
 #define t1_open()           \
     ((t1_file = search(headerpath, cur_file_name, FOPEN_RBIN_MODE)) != NULL)
 #define enc_open()           \
-    ((enc_file = search(headerpath, cur_file_name, FOPEN_RBIN_MODE)) != NULL)
+    ((enc_file = search(encpath, cur_file_name, FOPEN_RBIN_MODE)) != NULL)
 #define external_enc()      ext_glyph_names
 #define full_file_name()    cur_file_name
 #define get_length1()
@@ -88,13 +88,12 @@
 #define t1_scan_keys()
 #define update_builtin_enc(font, glyph_names) 
 #define embed_all_glyphs(tex_font)  false
-#undef pdfmovechars
 #ifdef SHIFTLOWCHARS
+extern Boolean shiftlowchars ;
 #define t1_char(c)          T1Char(c)
-#define pdfmovechars      1
 #else /* SHIFTLOWCHARS */
 #define t1_char(c)          c
-#define pdfmovechars      0
+#define shiftlowchars   0
 #endif /* SHIFTLOWCHARS */
 #define extra_charset()     dvips_extra_charset
 #define make_subset_tag(a, b)
@@ -166,8 +165,8 @@
 static boolean read_encoding_only;
 static int t1_encoding;
 
-#define T1_BUF_SIZE   4096
-#define ENC_BUF_SIZE  1024
+#define T1_BUF_SIZE   0x4000
+#define ENC_BUF_SIZE  0x1000
 
 #define ENC_STANDARD  0
 #define ENC_BUILTIN   1
@@ -874,8 +873,8 @@
             pdftex_fail("cannot subset font (unknown predefined encoding `%s')", 
                         t1_buf_array);
         return;
-    }
-    t1_encoding = ENC_BUILTIN;
+    } else
+        t1_encoding = ENC_BUILTIN;
    /*
     * At this moment "/Encoding" is the prefix of t1_line_array, and the encoding is
     * not a predefined encoding
@@ -1388,7 +1387,7 @@
     }
     if (is_included(fm_cur) && is_subsetted(fm_cur))
         make_subset_tag(fm_cur, t1_fontname_offset);
-    if (pdfmovechars == 0 && t1_encoding == ENC_STANDARD)
+    if (shiftlowchars == 0 && t1_encoding == ENC_STANDARD)
         t1_puts("/Encoding StandardEncoding def\n");
     else {
         t1_puts("/Encoding 256 array\n0 1 255 {1 index exch /.notdef put} for\n");


More information about the pdftex mailing list