summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/xdvipdfmx/ChangeLog9
-rw-r--r--Build/source/texk/xdvipdfmx/src/cidtype2.c9
2 files changed, 12 insertions, 6 deletions
diff --git a/Build/source/texk/xdvipdfmx/ChangeLog b/Build/source/texk/xdvipdfmx/ChangeLog
index b1b49de5333..1db8ddeddf6 100644
--- a/Build/source/texk/xdvipdfmx/ChangeLog
+++ b/Build/source/texk/xdvipdfmx/ChangeLog
@@ -1,16 +1,17 @@
2013-02-15 Khaled Hosny <khaledhosny@eglug.org>
+ * src/cidtype2.c: Fix loading *.dfont files on non-Mac platforms.
* src/fontmap.c: Don't include unused ApplicationServices headers
* configure.ac src/Makefile.am: Don't check for now unused Apple
ApplicationServices.
2013-02-12 Khaled Hosny <khaledhosny@eglug.org>
- * dpxfile.c, dpxfile.h (dpx_find_dfont_file): Make public.
- * fontmap.c (pdf_load_native_font_from_path): Fix loading *.dfont files.
- * fontmap.c (pdf_load_native_font): Drop use of deprecated ATS API, all
+ * src/dpxfile.c, src/dpxfile.h (dpx_find_dfont_file): Make public.
+ * src/fontmap.c (pdf_load_native_font_from_path): Fix loading *.dfont files.
+ * src/fontmap.c (pdf_load_native_font): Drop use of deprecated ATS API, all
native fonts should be given as file names.
- * fontmap.c (pdf_load_native_font): Show failed font name in error
+ * src/fontmap.c (pdf_load_native_font): Show failed font name in error
message.
2013-02-08 Peter Breitenlohner <peb@mppmu.mpg.de>
diff --git a/Build/source/texk/xdvipdfmx/src/cidtype2.c b/Build/source/texk/xdvipdfmx/src/cidtype2.c
index c0257e1b981..0059a1c89ea 100644
--- a/Build/source/texk/xdvipdfmx/src/cidtype2.c
+++ b/Build/source/texk/xdvipdfmx/src/cidtype2.c
@@ -568,7 +568,9 @@ CIDFont_type2_dofont (CIDFont *font)
ERROR("Invalid TTC index in %s.", font->ident);
break;
case SFNT_TYPE_TRUETYPE:
-#ifndef XETEX_MAC
+#ifndef XETEX
+ /* disable the check here becuase sfnt_open() does not distinguish dfont
+ * from regular trutype */
if (font->options->index > 0)
ERROR("Found TrueType font file while expecting TTC file (%s).", font->ident);
#endif
@@ -971,9 +973,12 @@ CIDFont_type2_open (CIDFont *font, const char *name,
offset = ttc_read_offset(sfont, opt->index);
break;
case SFNT_TYPE_TRUETYPE:
-#ifdef XETEX_MAC /* disable the index check here because of how .dfonts are handled */
+#ifdef XETEX
+ /* disable the check here becuase sfnt_open() does not distinguish dfont
+ * from regular trutype */
offset = 0;
#else
+ assert (opt->index == 0);
if (opt->index > 0) {
ERROR("Invalid TTC index (not TTC font): %s", name);
} else {