diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-07-24 07:38:21 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-07-24 07:38:21 +0000 |
commit | a9483c887815e8976dd5ee214736c1de4e66497d (patch) | |
tree | c87f75d633758618a7675c474b539ddd39f86de1 /Build/source/texk/dvipdfm-x | |
parent | fe33416b923a9a86e74ffa94f9d2efe7c2c3bc00 (diff) |
texk/dvipdfm-x: Support CID-keyed OpenType: Avoid compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@34711 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdffont.c | 2 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/tt_cmap.c | 2 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/type0.c | 6 |
4 files changed, 11 insertions, 5 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index b4fec2eb3e1..561d89e0182 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,9 @@ +2014-07-24 Peter Breitenlohner <peb@mppmu.mpg.de> + + * pdffont.c (pdf_get_font): Drop unused variable. + * tt_cmap.c (gid_to_cid): Declare as static. + * type0.c (Type0Font_*_ToUnicode_stream): Declare as static. + 2014-07-23 Jiang Jiang <gzjjgod@gmail.com> * cff.c, pdfdev.c, pdffont.c, pdffont.h, tt_cmap.c, type0.c, type0.h: diff --git a/Build/source/texk/dvipdfm-x/pdffont.c b/Build/source/texk/dvipdfm-x/pdffont.c index 2bea295e7d8..4ac335318d3 100644 --- a/Build/source/texk/dvipdfm-x/pdffont.c +++ b/Build/source/texk/dvipdfm-x/pdffont.c @@ -382,8 +382,6 @@ pdf_get_font_wmode (int font_id) pdf_font * pdf_get_font (int font_id) { - pdf_font *font; - CHECK_ID(font_id); return GET_FONT(font_id); diff --git a/Build/source/texk/dvipdfm-x/tt_cmap.c b/Build/source/texk/dvipdfm-x/tt_cmap.c index a2e8e21f679..fa17d2d1549 100644 --- a/Build/source/texk/dvipdfm-x/tt_cmap.c +++ b/Build/source/texk/dvipdfm-x/tt_cmap.c @@ -951,7 +951,7 @@ handle_subst_glyphs (CMap *cmap, return count; } -unsigned int +static unsigned int gid_to_cid(sfnt *sfont, USHORT gid) { unsigned int cid = 0; diff --git a/Build/source/texk/dvipdfm-x/type0.c b/Build/source/texk/dvipdfm-x/type0.c index b74b3f27e02..61785509c0c 100644 --- a/Build/source/texk/dvipdfm-x/type0.c +++ b/Build/source/texk/dvipdfm-x/type0.c @@ -153,7 +153,8 @@ Type0Font_clean (Type0Font *font) /* PLEASE FIX THIS */ #include "tt_cmap.h" -pdf_obj *Type0Font_create_ToUnicode_stream(Type0Font *font) { +static pdf_obj * +Type0Font_create_ToUnicode_stream(Type0Font *font) { CIDFont *cidfont = font->descendant; char *used = Type0Font_get_usedglyphs(font); if (!used) @@ -168,7 +169,8 @@ pdf_obj *Type0Font_create_ToUnicode_stream(Type0Font *font) { /* Try to load ToUnicode CMap from file system first, if not found fallback to * font CMap reverse lookup. */ -pdf_obj *Type0Font_try_load_ToUnicode_stream(Type0Font *font, char *cmap_base) { +static pdf_obj * +Type0Font_try_load_ToUnicode_stream(Type0Font *font, char *cmap_base) { char *cmap_name = NEW(strlen(cmap_base) + strlen("-UTF-16"), char); pdf_obj *tounicode; |