summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x
AgeCommit message (Collapse)Author
2014-08-12texk/dvipdfm-x: New (smaller) BMP and JP2 images for testsPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34914 c570f23f-e606-0410-a88d-b1316a301751
2014-08-12texk/dvipdfm-x: Add tests with BMP and JP2 imagesPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34913 c570f23f-e606-0410-a88d-b1316a301751
2014-08-12texk/dvipdfm-x: Add tests with BMP and JP2 imagesPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34912 c570f23f-e606-0410-a88d-b1316a301751
2014-08-11texk/dvipdfm-x: Add support for JPEG 2000 (and BMP for extractbb),Peter Breitenlohner
from Shunsaku Hirata <shunsaku.hirata74@gmail.com> git-svn-id: svn://tug.org/texlive/trunk@34905 c570f23f-e606-0410-a88d-b1316a301751
2014-08-11texk/dvipdfm-x: Drop libutil.a, i.e., compile all files once for dvipdfmx ↵Peter Breitenlohner
and once for xdvipdfmx git-svn-id: svn://tug.org/texlive/trunk@34904 c570f23f-e606-0410-a88d-b1316a301751
2014-08-09dvipdfm-x: Fix warnings handling subst glyphsJjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34886 c570f23f-e606-0410-a88d-b1316a301751
2014-08-09dvipdfm-x: Simplify ToUnicode handlingJjgod Jiang
Remove used_glyphs and its supporting code for ToUnicode handling, because for CID fonts, glyph id can be looked up from cid which is stored in used_chars already, it simplified a lot of code and reduced memory usage. Continue dedup create_ToUnicode_cmap{4,12}() with add_to_cmap_if_used(). git-svn-id: svn://tug.org/texlive/trunk@34885 c570f23f-e606-0410-a88d-b1316a301751
2014-08-05Fix xdvipdfmx ToUnicode regression caused by r34831Jjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34848 c570f23f-e606-0410-a88d-b1316a301751
2014-08-05dvipdfm-x: ANSI C function definitions and protosPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34846 c570f23f-e606-0410-a88d-b1316a301751
2014-08-04Fix some warnings and remove unused codeJjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34837 c570f23f-e606-0410-a88d-b1316a301751
2014-08-04Fix crash and infinity look caused by r34831Jjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34836 c570f23f-e606-0410-a88d-b1316a301751
2014-08-04Fix warnings when comparing size_t with negative valueJjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34835 c570f23f-e606-0410-a88d-b1316a301751
2014-08-04texk/dvipdfm-x: Drop unused variablesPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34834 c570f23f-e606-0410-a88d-b1316a301751
2014-08-04Only do CFF glyph name lookup for non-CID fontsJjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34832 c570f23f-e606-0410-a88d-b1316a301751
2014-08-04Fix ToUnicode with reverse CMap lookupJjgod Jiang
When dvipdfmx is provided a regular CMap in the following format: <unicode codepoint> cid We can try to utilize the data and do a reverse lookup when all we know is the cids used. Initially, when parsing the cmap specified, we build a reverseMap which maps CID to the first Unicode codepoint it corresponds to. (Which is pretty much the reverse of CMap_decode().) Since this cmap is already parsed when we create the fontmap cache, we can just pass the cmap_id all the way down to otf_create_ToUnicode_stream() and get CMap* back from this cmap_id. Second, we refactor create_ToUnicode_cmap{4, 12}() functions into one create_ToUnicode_cmap() and combine the common code. In the third step, in create_ToUnicode_cmap() we try to see if the font is indeed a CFF font (with CID-keyed), and we do have a cmap, we can use the newly added CMap_reverse_decode() to convert all used cids back to Unicode codepoints. With that mapping information we can successfully create the ToUnicode PDF stream we needed. git-svn-id: svn://tug.org/texlive/trunk@34831 c570f23f-e606-0410-a88d-b1316a301751
2014-08-04Fix ToUnicode stream creation for non-subst glyphsJjgod Jiang
non-subst glyphs generated with Unicode -> CID CMap are now properly handled by storing the correct GID used and match them with the CMAP in the fonts. subst glyphs (the ones when OpenType features have been applied) can not be found because they are not directly accessible through CMAP. git-svn-id: svn://tug.org/texlive/trunk@34830 c570f23f-e606-0410-a88d-b1316a301751
2014-08-03Better fix for r34757Jjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34805 c570f23f-e606-0410-a88d-b1316a301751
2014-08-03texk/dvipdfm-x/pdfobj.c: fix a typoAkira Kakuto
git-svn-id: svn://tug.org/texlive/trunk@34804 c570f23f-e606-0410-a88d-b1316a301751
2014-08-02Fix a bug in unicode encoding in CFF/OpenType fonts (from the original ↵Akira Kakuto
author, S. Hirata) git-svn-id: svn://tug.org/texlive/trunk@34797 c570f23f-e606-0410-a88d-b1316a301751
2014-08-01fix a bug in type0.cAkira Kakuto
git-svn-id: svn://tug.org/texlive/trunk@34790 c570f23f-e606-0410-a88d-b1316a301751
2014-07-30Remove commented out codeKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34778 c570f23f-e606-0410-a88d-b1316a301751
2014-07-30Use dvi_right where appropriateKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34777 c570f23f-e606-0410-a88d-b1316a301751
2014-07-30Minor code shufflingKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34776 c570f23f-e606-0410-a88d-b1316a301751
2014-07-30texk/dvipdfm-x: Fix the new xbmc testPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34775 c570f23f-e606-0410-a88d-b1316a301751
2014-07-30Support TeX-XeT's begin_reflect and end_reclect opcodes in dvipdfmxKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34774 c570f23f-e606-0410-a88d-b1316a301751
2014-07-29Fix crash in fonts with no font map entryKhaled Hosny
The unit test does not actually work, no idea why the dvipdfmx can not found the xbmc10.tfm file! git-svn-id: svn://tug.org/texlive/trunk@34767 c570f23f-e606-0410-a88d-b1316a301751
2014-07-29Rename is_xetex to is_xdvKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34766 c570f23f-e606-0410-a88d-b1316a301751
2014-07-29Remove wrong is_xetex checkKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34765 c570f23f-e606-0410-a88d-b1316a301751
2014-07-29Remove some is_xetex checksKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34764 c570f23f-e606-0410-a88d-b1316a301751
2014-07-29Remove always true #ifdef ENABLE_TOUNICODEKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34763 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Fix for non-C99 compilersJjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34760 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Fix a compiler warning with unsigned comparisonJjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34759 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Fix rsrc file access warning when loading non-CID OpenType fontsJjgod Jiang
git-svn-id: svn://tug.org/texlive/trunk@34758 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Support getting glyph names from OpenType/CFF fontsKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34757 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Split that bit of code to a separate functionKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34756 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Don't try to added invalid CMap entriesKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34755 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28texk/dvipdfm-x: Avoid once again compiler warnings (compare r34711)Peter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34751 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Don't insert the pic file while skimming reflected segmentsKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34750 c570f23f-e606-0410-a88d-b1316a301751
2014-07-28Correct release of retained cff_charsetsJjgod Jiang
The cff_charsets we retained is owned and cached by cid_opt struct thus should be released in release_opt() instead of pdf_close_device(). git-svn-id: svn://tug.org/texlive/trunk@34749 c570f23f-e606-0410-a88d-b1316a301751
2014-07-27Avoid read past 65536 glyphsKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34745 c570f23f-e606-0410-a88d-b1316a301751
2014-07-27Fix reverse CMap lookup for ToUnicode map generationKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34744 c570f23f-e606-0410-a88d-b1316a301751
2014-07-27Fix CID-keyed fonts glyph lookupKhaled Hosny
Keep cff_charsets parsed from CID font around if exists. Use the cff_charsets to do GID -> CID lookup. git-svn-id: svn://tug.org/texlive/trunk@34743 c570f23f-e606-0410-a88d-b1316a301751
2014-07-27Revert "Move all files without #ifdef XETEX to libutil.a"Khaled Hosny
Those files must be compiled with -DXETEX after all as they include headers that contain #ifdef XETEX in structs, otherwise we end up allocating the wrong memory size. git-svn-id: svn://tug.org/texlive/trunk@34742 c570f23f-e606-0410-a88d-b1316a301751
2014-07-26texk/dvipdfm-x: Avoid some compiler warningsPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@34731 c570f23f-e606-0410-a88d-b1316a301751
2014-07-25Remove unnecessary is_xetex checksKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34722 c570f23f-e606-0410-a88d-b1316a301751
2014-07-25Move all files without #ifdef XETEX to libutil.aKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34721 c570f23f-e606-0410-a88d-b1316a301751
2014-07-25Use an enum for resource type instead of macrosKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34720 c570f23f-e606-0410-a88d-b1316a301751
2014-07-25SimplifyKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@34719 c570f23f-e606-0410-a88d-b1316a301751
2014-07-25Remove most of font related #ifdef XETEXKhaled Hosny
Almost all of this is not needed now since XeTeX’s native fonts are always passed by file name and face index now, so we can use original dvipdfmx direct file based code instead of using a FreeType font face. Has the side effect of fixing: https://sourceforge.net/p/xetex/bugs/97/ git-svn-id: svn://tug.org/texlive/trunk@34718 c570f23f-e606-0410-a88d-b1316a301751
2014-07-25Revert "Support CID-keyed OpenType fonts in xdvipdfmx (from Jiang Jiang)"Khaled Hosny
This reverts commit bf7b0213f14c179b2df004cf6ee134a4b8ae4f99. git-svn-id: svn://tug.org/texlive/trunk@34717 c570f23f-e606-0410-a88d-b1316a301751