diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-27 23:04:53 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-27 23:04:53 +0000 |
commit | 8637534bb66ab060136119b6e8e547c0f4e43ffe (patch) | |
tree | dea49c9fe826b11381ffb952497620e1e31de7b6 /Build/source/texk/dvipdfm-x/pdffont.c | |
parent | 5795568a60dba76e57cdb78fda5aab4e6e135991 (diff) |
Fix reverse CMap lookup for ToUnicode map generation
git-svn-id: svn://tug.org/texlive/trunk@34744 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdffont.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdffont.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdffont.c b/Build/source/texk/dvipdfm-x/pdffont.c index e25a1ccc9e9..f0189d74195 100644 --- a/Build/source/texk/dvipdfm-x/pdffont.c +++ b/Build/source/texk/dvipdfm-x/pdffont.c @@ -334,6 +334,24 @@ pdf_get_font_usedchars (int font_id) } } +char * +pdf_get_font_usedglyphs (int font_id) +{ + pdf_font *font; + + CHECK_ID(font_id); + + font = GET_FONT(font_id); + if (font->subtype == PDF_FONT_FONTTYPE_TYPE0) { + Type0Font *t0font; + + t0font = Type0Font_cache_get(font->font_id); + return Type0Font_get_usedglyphs(t0font); + } + + return NULL; +} + int pdf_get_font_wmode (int font_id) { |