Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-09-05 | Add fz_new_stext_page_from_annot utility function. | Tor Andersson | |
2018-09-05 | Use colorspace type enum instead of magic profile names. | Tor Andersson | |
2018-08-22 | Remove the old 'nested depth' tracking. | Tor Andersson | |
This was used to prevent infinite cycles in the Type3 font CharProcs, but the previous commits forbids all cycles in order to prevent memory leaks due to cyclic reference counts. | |||
2018-08-10 | The proper term is apparently 'filename extension', not 'suffix'. | Tor Andersson | |
2018-08-10 | Clean up null/range/endstream filter. | Tor Andersson | |
Use separate functions to keep the code simpler. Use memmem to simplify and optimize search for 'endstream' token. Do not look for 'endobj' since that could cause a false positives in compressed object streams that have duff lengths. | |||
2018-08-10 | Add fz_memmem function taken from musl libc. | Tor Andersson | |
2018-07-06 | Bug 699308: Fix stream reading logic to better cope with duff Lengths. | Robin Watts | |
Always look for the "endstream" marker after a PDF stream to see if we've hit the end. Allow for "endobj" to cope with producers that omit endstream entirely. Avoid slowing down legal files by only checking for the end marker after the specified length has been read. | |||
2018-07-05 | Add fz_transform_page helper function. | Tor Andersson | |
Create a matrix that transforms a page with resolution and rotation, and grid fits the resulting bounding box. | |||
2018-07-05 | Pass rects by value: device and document interface. | Tor Andersson | |
2018-07-05 | Pass matrices by value: device and document interface. | Tor Andersson | |
2018-07-05 | Pass rect and matrix by value in geometry functions. | Tor Andersson | |
Several things irk me about passing values as const pointers: * They can be NULL, which is not a valid value. * They require explicit temporary variables for storage. * They don't compose easily in a legible manner, requiring weird pointer passing semantics where the variable being assigned is hidden as an argument in the innermost function call. * We can't change the value through the pointer, requiring yet more local variables to hold copies of the input value. In the device interface where we pass a matrix to a function, we often find ourselves making a local copy of the matrix so we can concatenate other transforms to it. This copying is a lot of unnecessary busywork that I hope to eventually avoid by laying the groundwork with this commit. This is a rather large API change, so I apologize for the inconvenience, but I hope the end result and gain in legibility will be worth the pain. | |||
2018-07-04 | Add fz_snap_selection function to snap selection to chars/words/lines. | Tor Andersson | |
Updates the input point coordinates, and also returns a quad with appropriate UI handles. | |||
2018-07-04 | Add fz_is_point_inside_rect utility function. | Tor Andersson | |
2018-06-22 | Don't pollute namespace with our 'restrict' macro. Use FZ_RESTRICT instead. | Tor Andersson | |
2018-06-22 | Use fz_quad type in structured text and selection/highlighting. | Tor Andersson | |
2018-06-22 | Add fz_quad type. | Tor Andersson | |
2018-06-22 | Remember the md5 digest in the fz_font struct. | Tor Andersson | |
2018-06-02 | Fix include file ifdefs when building with -std=c11. | Tor Andersson | |
2018-06-02 | Add a fz_strnlen function (strnlen is not standard C). | Tor Andersson | |
2018-05-16 | Keep JBIG2 image data compressed in fz_compressed_buffer. | Tor Andersson | |
2018-05-16 | Purge unused functions. | Tor Andersson | |
2018-05-16 | Restore Emoji font. | Tor Andersson | |
The Noto symbol font has been split into two. The second symbol font only contains a subset of the emojis, so reinstate the real emoji font and add both symbol fonts to the fallback chain. | |||
2018-04-27 | Handle multi-page image formats in muimg document driver. | Tor Andersson | |
Remove the mutiff document type. | |||
2018-04-27 | Support multipage pnm images. | Sebastian Rasmussen | |
2018-04-25 | Don't use WMode as part of CJK font lookup. | Tor Andersson | |
Return TTC subfont index from fz_lookup_noto_font. | |||
2018-04-12 | Update CHANGES and bump version. | Tor Andersson | |
2018-04-11 | Rework 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-03 | Android: Scavenge on Bitmap.lockPixels() failure. | Robin Watts | |
If Bitmap.lockPixels fails with an allocation error, scavenge in the store. | |||
2018-04-03 | Fix 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-22 | Add more version number #defines. | Tor Andersson | |
2018-03-22 | Add fz_output encoding filters. | Tor Andersson | |
2018-03-22 | Clean up windows ifdefs. | Tor Andersson | |
_WIN32 is always defined on windows (it means the WinAPI is available). _WIN64 is also defined on 64-bit targets. This means the test for defined(_WIN32) || defined(_WIN64) is redundant, since if _WIN64 is defined, then _WIN32 is always also defined. MSC_VER is only defined for MSVC, so split the ifdef sections in include/fitz/system.h into separate MSVC and WIN32 parts so that we can build with MinGW and other non-MSVC compilers on windows. | |||
2018-03-16 | Add simple functions to create the built-in fonts by name. | Tor Andersson | |
2018-03-16 | Don't throw when fz_is_directory is called on a non-existent path. | Tor Andersson | |
2018-02-27 | Add fz_expand_irect function. | Tor Andersson | |
2018-02-27 | Add fz_translate_rect helper function. | Tor Andersson | |
2018-02-27 | Add convenience functions to create point/rect/matrix. | Tor Andersson | |
In the absence of C99 (fz_rect){0,0,1,1} syntax, this will have to do. | |||
2018-02-13 | Add fz_begin_layer/fz_end_layer. | Robin Watts | |
Call these from the PDF interpreter. Make the DisplayList and Trace devices cope. Use these in the SVG output device. | |||
2018-02-12 | Don't pollute global namespace with __printflike. | Tor Andersson | |
Use a FZ_PRINTFLIKE macro instead. | |||
2018-02-07 | Fix uninitialised variable warning in fz_peek_byte | Paul Gardiner | |
2018-02-02 | Generalise the null filter to handle more than a single range. | Paul Gardiner | |
This is needed to simplify the way the bytes for hashing are passed to pkcs7 functions. | |||
2018-01-31 | Rename confusing fz_stream close callback to drop. | Tor Andersson | |
2018-01-31 | Add buffering to fz_output. | Tor Andersson | |
2018-01-19 | Add fz_output_as_stream | Paul Gardiner | |
This provides a way for some output streams to also be read, a feature needed for the sake of document signing. Currently this is supported only for file output. | |||
2018-01-10 | Add colorspace type enum and use it instead of hardcoded checks on N. | Tor Andersson | |
2018-01-10 | Don't allow reading from a 'dead' fz_stream. | Tor Andersson | |
Once a stream has thrown an exception or reached EOF, don't allow further reading. The EOF flag is reset when fz_seek is invoked. | |||
2018-01-10 | Handle exceptions in fz_peek_byte the same way as in fz_read_byte. | Tor Andersson | |
2018-01-04 | Add portable pseudo-random number generator based on the lrand48 family. | Tor Andersson | |
2017-12-13 | Define constant INT64_MAX where int64_t is declared. | Sebastian Rasmussen | |
2017-12-13 | Parse XML using pool allocator. | Tor Andersson | |
This needs adding a fz_xml_doc type to hold the pool. |