summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfdev.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfdev.c26
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;