diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-03-14 15:55:55 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2013-03-14 15:55:55 +0000 |
commit | 442828aa5a18b5acf1169f5fc2b607fe91bed946 (patch) | |
tree | 243f7025b4c49e370f5fda15659208853e75a4f4 /Build/source/texk | |
parent | 0f9c2602c7150994fcdbe34e2b294b71dd8a5fe3 (diff) |
Remove commented out code
git-svn-id: svn://tug.org/texlive/trunk@29390 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/dvi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/dvi.c b/Build/source/texk/xdvipdfmx/src/dvi.c index b8d79ac2f00..c7baf12a3c2 100644 --- a/Build/source/texk/xdvipdfmx/src/dvi.c +++ b/Build/source/texk/xdvipdfmx/src/dvi.c @@ -1908,18 +1908,15 @@ do_glyph_array (int yLocsPresent) if (font->rgba_color != 0xffffffff) { pdf_color color; -// pdf_color_push(); pdf_color_rgbcolor(&color, (double)((unsigned char)(font->rgba_color >> 24) & 0xff) / 255, (double)((unsigned char)(font->rgba_color >> 16) & 0xff) / 255, (double)((unsigned char)(font->rgba_color >> 8) & 0xff) / 255); pdf_color_push(&color, &color); -// pdf_dev_setcolor(&color, 0); /* stroke color */ -// pdf_dev_setcolor(&color, 1); /* fill color */ } + for (i = 0; i < slen; i++) { glyph_id = get_buffered_unsigned_pair(); /* freetype glyph index */ - if (glyph_id < font->ft_face->num_glyphs) { FT_Error error; FT_Fixed advance; @@ -1942,11 +1939,13 @@ do_glyph_array (int yLocsPresent) pdf_doc_expand_box(&rect); } } + wbuf[0] = glyph_id >> 8; wbuf[1] = glyph_id & 0xff; pdf_dev_set_string(dvi_state.h + xloc[i], -dvi_state.v - yloc[i], wbuf, 2, glyph_width, font->font_id, -1); } + if (font->rgba_color != 0xffffffff) { pdf_color_pop(); } |