summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-10-26Update ios/android to use new way of passion stext options.Sebastian Rasmussen
In addition, make all callers passing 0 as a point pass NULL instead.
2016-10-26tiff: Drop pixmap when exception is thrown.Sebastian Rasmussen
Also don't check for NULL unnecessarily.
2016-10-26tiff: Always set colorspace when reading image info.Sebastian Rasmussen
Commit 3059b6908208fbb9547e6876332a5b42a6406d1a accidentally caused colorspace to not be set when reading image information.
2016-10-26Introduce options for structured text.Sebastian Rasmussen
2016-10-26Don't use local function, use fz_option_eq().Sebastian Rasmussen
2016-10-26js: Handle null for all options supplied as strings.Sebastian Rasmussen
2016-10-24Don't return overlapping search results.Tor Andersson
2016-10-24Use correct coordinates for synthesized space characters in stext device.Tor Andersson
2016-10-24Fix 697236: Don't update pen position inside clusters in stext device.Tor Andersson
This caused us to introduce extra space characters after clusters that come from ligatures such as 'fi' which are composed of two characters but only one glyph.
2016-10-24Bug 697235: Change default values for stext options.Sebastian Rasmussen
Previously it was not possible to disable all options, but now this is the default.
2016-10-24When not preserving stext whitespace, only emit space character.Sebastian Rasmussen
Previously both a space character and the original whitespace character were emitted.
2016-10-24When not preserving stext ligatures, remember actual character added.Sebastian Rasmussen
Previously, when the ligatures were not preserved, the ligature glyph itself was remembered but not each individual character it expanded to.
2016-10-24Bug 697226: Fix SEGV in Android viewer.Robin Watts
As we skip through pages very quickly, it is apparently possible to trigger a SEGV. Alex Talis has given a clear description of the problem on the bug, and proposed this solution. Essentially this tweaks our CancellableAsyncTask class to ensure that we do not destroy the cookie before it has finished being accessed.
2016-10-24Fix cluster timeouts with test file.Robin Watts
tests_private/pdf/sumatra/1297_-_interpolate_at_lower_resolutions.pdf times out in the cluster. This is due to us having empty t3 glyphs defined that define d1 rectangles that are wildly different to the default font bbox. Add code to spot that t3 glyphs are empty, and to use a tiny font bbox for them. (It might be nicer to drop the empty display lists, but then this produces knock on problems further on, where non-existent display lists lead to NULL pixmaps, which lead to us think that renders failed etc).
2016-10-24Bug 697234: Fix slow rendering.Robin Watts
fz_contains_rect was improperly implemented (the logic in the final test was reversed). This was causing us to use the font bbox for some t3 glyphs, resulting in massive bboxes, that could never be cached. Rerendering these each time was taking ages, even though there was nothing actually in them.
2016-10-21epub: Set link height to the font size.Tor Andersson
2016-10-21epub: Don't call strcmp for quick tag name checks.Tor Andersson
2016-10-21Update docs/naming.txtTor Andersson
2016-10-21jni: Update mupdf_native.h.Tor Andersson
2016-10-21Clean up pdf_add_image to handle unknown image formats more robustly.Tor Andersson
2016-10-21Clean up FZ_IMAGE_XXX enums and purge unused FZ_IMAGE_JBIG2.Tor Andersson
2016-10-19Move headers to make svg_document an internal type.Sebastian Rasmussen
2016-10-19Move headers to make xps_document an internal type.Sebastian Rasmussen
2016-10-19Rename internal headers to follow pattern *-imp.h.Sebastian Rasmussen
2016-10-19Make document handler declarations internal.Sebastian Rasmussen
2016-10-18Internal drop functions don't need to check for NULL.Sebastian Rasmussen
2016-10-18All external drop functions handles NULL.Sebastian Rasmussen
2016-10-18Avoid checking argument to fz_drop_*()/fz_free().Sebastian Rasmussen
As fz_drop_*()/fz_free() all must handle NULL.
2016-10-18Drop scaled pixmap later in draw_fill_image_mask().Sebastian Rasmussen
Following the pattern in draw_fill_image().
2016-10-17gl: Add reload key binding: 'r'.Tor Andersson
2016-10-18Remove unused luminosity.Sebastian Rasmussen
2016-10-18tiff: Support stripped YCbCr images.Sebastian Rasmussen
2016-10-18tiff: Cosmetic cleanup of code.Sebastian Rasmussen
In preparation for YCbCr support, rename some functions and make variable names more generic. Also remove fz_ prefix from static functions.
2016-10-16tiff: Plug pixmap leak should conversion fail.Sebastian Rasmussen
2016-10-16gif: Do not paste frame data if frame and image do not overlap.Sebastian Rasmussen
2016-10-16gif: Handle frames bigger than image correctly.Sebastian Rasmussen
The existing fix for bug 697161 introduced in commit 651c9f1d93c81c84deaf76debec0a30e54a67d7e was broken as frames would be constrained to the image size - 1. Now we decompress all available data, not suggesting an uncompressed size, but still checking the size after the uncomprsseion.
2016-10-16gif: Constrain frames to image boundaries.Sebastian Rasmussen
2016-10-16Avoid casting when dropping super objects.Sebastian Rasmussen
2016-10-16Only check digital signature when mouse button is released.Sebastian Rasmussen
2016-10-16Link with OpenSSL if present on system.Sebastian Rasmussen
2016-10-14epub: Add hyperlinks.Tor Andersson
2016-10-14gl: Do document layout before loading outline, to prevent laying out twice.Tor Andersson
Loading the outline automatically triggers a layout.
2016-10-14Be stricter when parsing css length units.Tor Andersson
2016-10-14Drop all contexts the same way.Sebastian Rasmussen
* Handle multiple calls to fz_drop_colorspace_context() and fz_drop_font_context(). * Allow missing context in call to fz_drop_aa_context() and fz_drop_glyph_cache_context(). * Only drop font context objects when dropping the last reference. * Avoid unnecessary NULL checks.
2016-10-14pnm: Workaround for b/w PAM images with packed samples.Sebastian Rasmussen
2016-10-14pnm: Support b/w PAM images with alpha.Sebastian Rasmussen
2016-10-14pnm: PAM images have component inverted compared to PNM.Sebastian Rasmussen
2016-10-14pnm: Premultiply alpha for use in pixmap.Sebastian Rasmussen
2016-10-14pnm: Better guesses when tuple type is not specified.Sebastian Rasmussen
2016-10-14pnm: Interpret binary b/w image samples correctly.Sebastian Rasmussen
Commit c2acdba7e9b72e18afdd3aa8dfdf66088b1ea1be mistakenly inverted the interpretation of samples for both both binary and ascii b/w PNM images when, at the time, there was only a mistake for ascii images.