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.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdev.c b/Build/source/texk/dvipdfm-x/pdfdev.c
index 2819a3e79af..ec7605a6ab4 100644
--- a/Build/source/texk/dvipdfm-x/pdfdev.c
+++ b/Build/source/texk/dvipdfm-x/pdfdev.c
@@ -463,7 +463,6 @@ struct dev_font {
pdf_obj *resource;
char *used_chars;
- char *used_glyphs;
/* Font format:
* simple, composite or bitmap.
@@ -877,8 +876,6 @@ dev_set_font (int font_id)
if (!real_font->resource) {
real_font->resource = pdf_get_font_reference(real_font->font_id);
real_font->used_chars = pdf_get_font_usedchars(real_font->font_id);
- if (real_font->cff_charsets)
- real_font->used_glyphs = pdf_get_font_usedglyphs(real_font->font_id);
}
if (!real_font->used_on_this_page) {
@@ -1158,12 +1155,6 @@ pdf_dev_set_string (spt_t xpos, spt_t ypos,
length = instr_len;
if (font->format == PDF_FONTTYPE_COMPOSITE) {
- if (real_font->used_glyphs != NULL && ctype == -1) {
- for (i = 0; i < length; i += 2) {
- unsigned short gid = (str_ptr[i] << 8) | str_ptr[i + 1];
- add_to_used_chars2(real_font->used_glyphs, gid);
- }
- }
if (handle_multibyte_string(font, &str_ptr, &length, ctype) < 0) {
ERROR("Error in converting input string...");
return;
@@ -1171,10 +1162,6 @@ pdf_dev_set_string (spt_t xpos, spt_t ypos,
if (real_font->used_chars != NULL) {
for (i = 0; i < length; i += 2) {
unsigned short cid = (str_ptr[i] << 8) | str_ptr[i + 1];
- if (ctype == 2 && font->cff_charsets) {
- unsigned short gid = cff_charsets_lookup_gid(font->cff_charsets, cid);
- add_to_used_chars2(real_font->used_glyphs, gid);
- }
add_to_used_chars2(real_font->used_chars, cid);
}
}
@@ -1549,7 +1536,6 @@ pdf_dev_locate_font (const char *font_name, spt_t ptsize)
font->resource = NULL; /* Don't ref obj until font is actually used. */
font->used_chars = NULL;
- font->used_glyphs = NULL;
font->extend = 1.0;
font->slant = 0.0;