summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/src/tt_glyf.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfmx/src/tt_glyf.c')
-rw-r--r--Build/source/texk/dvipdfmx/src/tt_glyf.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfmx/src/tt_glyf.c b/Build/source/texk/dvipdfmx/src/tt_glyf.c
index c258a784f65..661ed8693ee 100644
--- a/Build/source/texk/dvipdfmx/src/tt_glyf.c
+++ b/Build/source/texk/dvipdfmx/src/tt_glyf.c
@@ -2,7 +2,7 @@
This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2007-2012 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2002-2012 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
This program is free software; you can redistribute it and/or modify
@@ -215,7 +215,13 @@ tt_build_tables (sfnt *sfont, struct tt_glyphs *g)
ASSERT(g);
- if (sfont == NULL || sfont->stream == NULL)
+ if (sfont == NULL ||
+#ifdef XETEX
+ sfont->ft_face == NULL
+#else
+ sfont->stream == NULL
+#endif
+ )
ERROR("File not opened.");
if (sfont->type != SFNT_TYPE_TRUETYPE &&
@@ -520,7 +526,13 @@ tt_get_metrics (sfnt *sfont, struct tt_glyphs *g)
ASSERT(g);
- if (sfont == NULL || sfont->stream == NULL)
+ if (sfont == NULL ||
+#ifdef XETEX
+ sfont->ft_face == NULL
+#else
+ sfont->stream == NULL
+#endif
+ )
ERROR("File not opened.");
if (sfont->type != SFNT_TYPE_TRUETYPE &&