diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-25 13:56:38 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-25 13:56:38 +0000 |
commit | 796176898c849ec72156930daa2ea150b68c48a3 (patch) | |
tree | df9ae1a767183ead147947882f8895cf07f2417a /Build/source/texk/dvipdfm-x/t1_load.c | |
parent | 31053cc388d6f0b348b297a3a0b950e8d707916a (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/t1_load.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/t1_load.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Build/source/texk/dvipdfm-x/t1_load.c b/Build/source/texk/dvipdfm-x/t1_load.c index b54df5462b4..d6c73578a01 100644 --- a/Build/source/texk/dvipdfm-x/t1_load.c +++ b/Build/source/texk/dvipdfm-x/t1_load.c @@ -634,10 +634,6 @@ parse_charstrings (cff_font *font, charset->data.glyphs = NEW(count-1, s_SID); memset(charset->data.glyphs, 0, sizeof(s_SID)*(count-1)); -#ifdef XETEX - font->ft_to_gid = NEW(count, unsigned short); -#endif - offset = 0; have_notdef = 0; /* .notdef must be at gid = 0 in CFF */ @@ -675,9 +671,6 @@ parse_charstrings (cff_font *font, RELEASE_TOK(tok); return -1; } -#ifdef XETEX - font->ft_to_gid[i] = gid; -#endif if (gid > 0) charset->data.glyphs[gid-1] = cff_add_string(font, glyph_name, 0); @@ -1131,11 +1124,7 @@ t1_get_fontname (FILE *fp, char *fontname) static void init_cff_font (cff_font *cff) { -#ifdef XETEX - cff->sfont = NULL; -#else cff->stream = NULL; -#endif cff->filter = 0; cff->fontname = NULL; cff->index = 0; @@ -1164,10 +1153,6 @@ init_cff_font (cff_font *cff) cff->num_glyphs = 0; cff->num_fds = 1; cff->_string = cff_new_index(0); - -#ifdef XETEX - cff->ft_to_gid = NULL; -#endif } cff_font * |