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/pdfdev.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/pdfdev.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfdev.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdev.c b/Build/source/texk/dvipdfm-x/pdfdev.c index 54f1a9aa457..7d27b913fe9 100644 --- a/Build/source/texk/dvipdfm-x/pdfdev.c +++ b/Build/source/texk/dvipdfm-x/pdfdev.c @@ -455,9 +455,6 @@ struct dev_font { */ int font_id; int enc_id; -#ifdef XETEX - unsigned short *ft_to_gid; -#endif /* if >= 0, index of a dev_font that really has the resource and used_chars */ int real_font_index; @@ -957,26 +954,6 @@ handle_multibyte_string (struct dev_font *font, p = *str_ptr; length = *str_len; -#ifdef XETEX - if (ctype == -1) { /* freetype glyph indexes */ - if (font->ft_to_gid) { - /* convert freetype glyph indexes to physical GID */ - const unsigned char *inbuf = p; - unsigned char *outbuf = sbuf0; - for (i = 0; i < length; i += 2) { - unsigned int gid; - gid = *inbuf++ << 8; - gid += *inbuf++; - gid = font->ft_to_gid[gid]; - *outbuf++ = gid >> 8; - *outbuf++ = gid & 0xff; - } - p = sbuf0; - length = outbuf - sbuf0; - } - } - else -#endif /* _FIXME_ */ if (font->is_unicode) { /* UCS-4 */ if (ctype == 1) { @@ -1529,9 +1506,6 @@ pdf_dev_locate_font (const char *font_name, spt_t ptsize) font->wmode = pdf_get_font_wmode (font->font_id); font->enc_id = pdf_get_font_encoding(font->font_id); -#ifdef XETEX - font->ft_to_gid = pdf_get_font_ft_to_gid(font->font_id); -#endif font->resource = NULL; /* Don't ref obj until font is actually used. */ font->used_chars = NULL; |