summaryrefslogtreecommitdiffstats
path: root/office/texlive/debian/upstream-svn31313-pdftex-luatex
blob: a2b17b59350f553ce2196cf49e66767745de2aab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
upstream svn31313 fix for pdftex and luatex
---
 texk/web2c/luatexdir/ChangeLog       |    5 +++++
 texk/web2c/luatexdir/font/writettf.w |    7 +++----
 texk/web2c/pdftexdir/ChangeLog       |    5 +++++
 texk/web2c/pdftexdir/ttf2afm.c       |    6 +++---
 texk/web2c/pdftexdir/writettf.c      |    7 +++----
 5 files changed, 19 insertions(+), 11 deletions(-)

--- texlive-bin.orig/texk/web2c/luatexdir/ChangeLog
+++ texlive-bin/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-30  Peter Breitenlohner  <peb@mppmu.mpg.de>
+
+	* font/writettf.w: Treat unknown 'post' table versions
+	(found in some broken fonts) as 3.0, i.e., no Glyph names.
+
 2013-07-05  Peter Breitenlohner  <peb@mppmu.mpg.de>
 
 	* pdf/pdfgen.w: Use "%"LONGINTEGER_PRI"d" format specifier to
--- texlive-bin.orig/texk/web2c/luatexdir/font/writettf.w
+++ texlive-bin/texk/web2c/luatexdir/font/writettf.w
@@ -816,14 +816,13 @@
             }
         }
         break;
+    default:
+        pdftex_warn("unsupported format (%.8X) of `post' table, assuming 3.0",
+                    (unsigned int) post_format);
     case 0x00030000:
         for (glyph = glyph_tab; glyph - glyph_tab < NMACGLYPHS; glyph++) {
             glyph->name_index = (TTF_USHORT) (glyph - glyph_tab);
         }
-        break;
-    default:
-        pdftex_fail("unsupported format (%.8X) of `post' table",
-                    (unsigned int) post_format);
     }
 }
 
--- texlive-bin.orig/texk/web2c/pdftexdir/ChangeLog
+++ texlive-bin/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-30  Peter Breitenlohner  <peb@mppmu.mpg.de>
+
+	* ttf2afm.c, writettf.c: Treat unknown 'post' table versions
+	(found in some broken fonts) as 3.0, i.e., no Glyph names.
+
 2013-04-22  Akira Kakuto  <kakuto@fuk.kindai.ac.jp>
 
 	* pdftex.web: pdftex_revision = "14"
--- texlive-bin.orig/texk/web2c/pdftexdir/ttf2afm.c
+++ texlive-bin/texk/web2c/pdftexdir/ttf2afm.c
@@ -521,15 +521,15 @@
             }
         }
         break;
+    default:
+        ttf_warn("unsupported format (%.8X) of `post' table, assuming 3.0",
+                 post_format);
     case 0x00030000:
         if (print_glyph == AS_NAME) {
             ttf_warn
                 ("no names available in `post' table, print glyph names as indices");
             print_glyph = AS_INDEX;
         }
-        break;
-    default:
-        ttf_fail("unsupported format (%.8X) of `post' table", post_format);
     }
     ttf_seek_tab("loca", 0);
     if (loca_format == 1) {
--- texlive-bin.orig/texk/web2c/pdftexdir/writettf.c
+++ texlive-bin/texk/web2c/pdftexdir/writettf.c
@@ -517,14 +517,13 @@
             }
         }
         break;
+    default:
+        pdftex_warn("unsupported format (%.8X) of `post' table, assuming 3.0",
+                    (unsigned int) post_format);
     case 0x00030000:
         for (glyph = glyph_tab; glyph - glyph_tab < NMACGLYPHS; glyph++) {
             glyph->name_index = glyph - glyph_tab;
         }
-        break;
-    default:
-        pdftex_fail("unsupported format (%.8X) of `post' table",
-                    (unsigned int) post_format);
     }
 }