summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/tt_glyf.c
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2014-07-25 13:56:38 +0000
committerKhaled Hosny <khaledhosny@eglug.org>2014-07-25 13:56:38 +0000
commit796176898c849ec72156930daa2ea150b68c48a3 (patch)
treedf9ae1a767183ead147947882f8895cf07f2417a /Build/source/texk/dvipdfm-x/tt_glyf.c
parent31053cc388d6f0b348b297a3a0b950e8d707916a (diff)
Remove most of font related #ifdef XETEX
Almost all of this is not needed now since XeTeX’s native fonts are always passed by file name and face index now, so we can use original dvipdfmx direct file based code instead of using a FreeType font face. Has the side effect of fixing: https://sourceforge.net/p/xetex/bugs/97/ git-svn-id: svn://tug.org/texlive/trunk@34718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/tt_glyf.c')
-rw-r--r--Build/source/texk/dvipdfm-x/tt_glyf.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_glyf.c b/Build/source/texk/dvipdfm-x/tt_glyf.c
index 34b532e8b7d..89aec5dae7e 100644
--- a/Build/source/texk/dvipdfm-x/tt_glyf.c
+++ b/Build/source/texk/dvipdfm-x/tt_glyf.c
@@ -215,13 +215,7 @@ tt_build_tables (sfnt *sfont, struct tt_glyphs *g)
ASSERT(g);
- if (sfont == NULL ||
-#ifdef XETEX
- sfont->ft_face == NULL
-#else
- sfont->stream == NULL
-#endif
- )
+ if (sfont == NULL || sfont->stream == NULL)
ERROR("File not opened.");
if (sfont->type != SFNT_TYPE_TRUETYPE &&
@@ -529,13 +523,7 @@ tt_get_metrics (sfnt *sfont, struct tt_glyphs *g)
ASSERT(g);
- if (sfont == NULL ||
-#ifdef XETEX
- sfont->ft_face == NULL
-#else
- sfont->stream == NULL
-#endif
- )
+ if (sfont == NULL || sfont->stream == NULL)
ERROR("File not opened.");
if (sfont->type != SFNT_TYPE_TRUETYPE &&