diff options
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/truetype.c')
-rw-r--r-- | Build/source/texk/xdvipdfmx/src/truetype.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/truetype.c b/Build/source/texk/xdvipdfmx/src/truetype.c index 4ba3dce9cef..15bde765995 100644 --- a/Build/source/texk/xdvipdfmx/src/truetype.c +++ b/Build/source/texk/xdvipdfmx/src/truetype.c @@ -451,6 +451,7 @@ static int selectglyph (USHORT in, const char *suffix, struct glyph_mapper *gm, USHORT *out) { char *s, *q, t[5]; + const char *r; int n, error = 0; ASSERT(suffix && gm && out); @@ -463,9 +464,9 @@ selectglyph (USHORT in, const char *suffix, struct glyph_mapper *gm, USHORT *out * agl.c currently only knows less ambiguos cases; * e.g., 'sc', 'superior', etc. */ - q = (char *) agl_suffix_to_otltag(s); - if (q) { /* We found feature tag for 'suffix'. */ - error = select_gsub(q, gm); /* no fallback for this */ + r = agl_suffix_to_otltag(s); + if (r) { /* We found feature tag for 'suffix'. */ + error = select_gsub(r, gm); /* no fallback for this */ if (!error) error = otl_gsub_apply(gm->gsub, &in); } else { /* 'suffix' may represent feature tag. */ @@ -885,7 +886,7 @@ pdf_font_load_truetype (pdf_font *font) #ifdef ENABLE_NOEMBED int embedding = pdf_font_get_flag(font, PDF_FONT_FLAG_NOEMBED) ? 0 : 1; #endif /* ENABLE_NOEMBED */ - int index = pdf_font_get_index(font); + int index = pdf_font_get_index(font); char **enc_vec; pdf_obj *fontfile; FILE *fp = NULL; |