summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-25Update Noto fonts.Tor Andersson
Import Source Han Serif 1.001. Use serif fonts in preference for sans.
2018-04-25Update UCDN.Tor Andersson
2018-04-25Don't use WMode as part of CJK font lookup.Tor Andersson
Return TTC subfont index from fz_lookup_noto_font.
2018-04-25Default CJK language to traditional chinese.Tor Andersson
2018-04-25Try other CJK languages to find missing characters.Tor Andersson
2018-04-25Support creating both serif and sans-serif CJK fonts in mutool create.Tor Andersson
Also support Vertical WMode.
2018-04-25Use objcopy to compile font resources.Tor Andersson
2018-04-25Check in generated Javascript source files.Tor Andersson
Use a sed script to strip comments and whitespace and add escapes and quote it as a C string literal.
2018-04-25Clean up javascript source.Tor Andersson
2018-04-25Check in generated ICC profiles.Tor Andersson
2018-04-25Check in generated CMap source.Tor Andersson
Created with the 'scripts/runcmapdump.sh' script.
2018-04-25Update CMaps to latest version.Tor Andersson
Remove UTF8 and UTF32 CMap resources that are not needed for PDF. Add Identity-H and Identity-V resources. Process UCS2/UTF16 and GBK CMaps to usecmap a common subset.
2018-04-25Add CMap processing scripts, and turn cmapdump into mutool.Tor Andersson
A dumping script written in python. A flattening script written in python (for easier editing). A subsetting script written in shell to minimize CMaps by reusing subsets. Use 'mutool cmapdump' to bootstrap or verify cmap dumps.
2018-04-25Fix 698779: Wrong type for arguments when creating CCITTFax images.Tor Andersson
2018-04-25Remove document argument from pdf_new_primitive functions.Tor Andersson
Also remove useless pdf_new_null and pdf_new_bool functions. Use the PDF_NULL, PDF_TRUE, and PDF_FALSE macros instead.
2018-04-25Purge unused function: pdf_new_obj_from_str.Tor Andersson
2018-04-25Tweak ordering of constant pdf_obj enums to make PDF_NULL == NULL.Tor Andersson
2018-04-24Remove need for namedump by using macros and preprocessor.Tor Andersson
Add a PDF_NAME(Foo) macro that evaluates to a pdf_obj for /Foo. Use the C preprocessor to create the enum values and string table from one include file instead of using a separate code generator tool.
2018-04-23Avoid SEGV when mudrawing to SVG.Robin Watts
Belt and braces: 1) Don't attempt to close a NULL output stream. 2) If an output stream is NULL when we do close it, don't SEGV.
2018-04-20Limit xref parser to read entry contents.Sebastian Rasmussen
Previously if an xref entry looked like: 0000000000 65535 f 1 0 n 2 the xref entry parsing would try to access the scratch buffer outside of the part populated by the read leading to possibly using uninitalized data.
2018-04-20Add isdigit convenience macro in xref parsing.Sebastian Rasmussen
2018-04-19Support CalRGB (and CalGray) as destination color spacesMichael Vrhel
I did not foresee the case where a transparency groups color space could be a Cal color space. I had always thought of them as only be source color spaces not destination color spaces. This commit makes sure that we have the equivalent ICC profile when the destination is a Cal space.
2018-04-12Fix VS project file.Robin Watts
Stray line, presumably a merge edit failure.
2018-04-12Update CHANGES and bump version.Tor Andersson
2018-04-12Update Android.mk for recent build changes.Tor Andersson
2018-04-11Remove needless #defines in load-jpx.cTor Andersson
2018-04-11Update jbig2dec submodule.Tor Andersson
2018-04-11Update MuJS submodule to version 1.0.3.Tor Andersson
2018-04-11Fix CMap parsing bug when handling unicode surrogate pair ranges.Tor Andersson
Increment the value after adding the mapping, not before.
2018-04-11Rework how we handle DynaLab tricky fonts in freetype.Tor Andersson
Force the face_flags to include TRICKY if we detect a DynaLab font name instead of trying to force hinting ourselves.
2018-04-11Fix output paths in VS2005 project files.Tor Andersson
2018-04-11Update examples.Tor Andersson
2018-04-11For mutool create the encoding is not actually required.Sebastian Rasmussen
Also update the comment in the code to mention the optional encoding argument.
2018-04-08Set pointers to NULL so they can be safely dropped.Sebastian Rasmussen
Previously these were not set to NULL, which caused spurious segmentation errors.
2018-04-06Fix store multi-threading problem.Robin Watts
While running 'ensure_space', we can drop and retake the alloc lock. This can enable other threads to perform store operations, which can trigger reaps. When reaps happen, fz_item's are discarded. This is particularly bad when ensure_space happens to be holding onto a pointer to one (prev). The fix, implemented here, is to move items out of the store list (and hash table), and put them onto a local 'to_be_freed' list. Once on this local list we can be sure that they won't be found by other threads doing store operations, and they can be safely freed from there (dropping/retaking the lock as required).
2018-04-05jni: Expose interfaces for setting gamma and inverting pixmaps.Sebastian Rasmussen
2018-04-04Fix silly typo in pdf_load_compressed_inline_image.Tor Andersson
2018-04-03epub: Cope with empty (zero units tall) chapters.Tor Andersson
2018-04-03Set CXX to C++ compiler when cross compiling.Tor Andersson
2018-04-03Don't implicitly drop in fz_open_* chained filters.Tor Andersson
2018-04-03Fix error message in tar archive code.Tor Andersson
2018-04-03Fix error cleanup in pdf_load_font.Tor Andersson
2018-04-03Android: Scavenge on Bitmap.lockPixels() failure.Robin Watts
If Bitmap.lockPixels fails with an allocation error, scavenge in the store.
2018-04-03Android: Avoid crashes if we fail to lock a Bitmap.Robin Watts
If a call to Bitmap_lockPixels() fails, then previously we would have continued on blindly and tried to use it anyway. Now, spot failures and return so we get a java exception.
2018-04-03Fix VS2008 build.Robin Watts
Ken reports that a VS2008 import of the projects fails with complaints about __restrict whereever stdlib.h is included. Fix the #ifdeffery so that we don't mess with it on VS2008.
2018-03-22Fix bug 696910 in a different way.Tor Andersson
The strdup function is not part of the strict C++ standard. Use gnu++0x instead of c++0x when building Harfbuzz, which uses this function.
2018-03-22Use PDF object creation convenience functions.Tor Andersson
Use pdf_dict_put_* convenience functions. Use pdf_dict_get instead of pdf_dict_gets with constant strings.
2018-03-22Use pdf_add_new_dict family of functions.Tor Andersson
2018-03-22Add pdf_add_new_dict family of functions.Tor Andersson
Create a new empty dictionary, add it to the xref and return a new indirect reference object that points to it. This indirect reference needs to be dropped, since it was created with a function using the 'new' keyword.
2018-03-22Use pdf_dict_put_dict family of functions.Tor Andersson