summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-19Retry loading a hinted glyph without hinting if freetype returns an error.Tor Andersson
Allows us to render files with broken font hinting programs when hinting is enabled(whether by no-AA or DynaLab detection). Fix bug 692949.
2012-04-19Tweak manpages and add makefile rule to generate plain text versions.Tor Andersson
2012-04-19Bug 692990: Fix 'underjoin' of strokes.Robin Watts
See Bug 688655 for analysis of what we SHOULD be doing. The code changes to do this are actually quite small. Essentially, when we join we only draw the 'top' (or 'outer') join in a join dependent way. The 'under' join was always joined as a bevel before as this was easy. This produces bad effects when the lines have a significant angle between them and a large linewidth. The correct (i.e. matching Acrobat and others) way to work is to join the bottom of the line via the centre point. The sole exception to this is when drawing under beziers, as we don't want to make our approximation-by-lines obvious. All fixed in this patch.
2012-04-18Note that the fz_meta interface is subject to change.Robin Watts
Comment changes only.
2012-04-18Add LOCAL_TRIG_FNS option.Robin Watts
If this is defined during building, we use our own sinf/cosf/atan2f functions during shading. This is set automatically if CLUSTER is defined too, so this should remove the cross-platform differences seen during cluster rendering.
2012-04-18Add XCFLAGS option to makefile.Robin Watts
2012-04-17Add Meta interface to fz_document.Robin Watts
Use this to reintroduce "Document Properties..." in mupdf viewer.
2012-04-16Reduce the changes that mupdfclean makes to floats.Robin Watts
Most of the changes mupdfclean makes to a file are purely textual (streams are decompressed etc), but some objects can undergo changes due to being read in, and then written out. Notably in this class are floats. For instance, the mediabox in Bug689189.pdf contains 2125.984, which when written out with the current code gives 2125.98. This is enough of a difference to cause rendering changes. By upping the precision (instead of %g use, %1.9g) we get better results; we now output 2125.9839, which is much closer (and in fact has the same float representation when read back in). This drastically reduces the differences between a rendering of Bug689189.pdf and the uncompressed version, but we still have differences - in shadings, it seems.
2012-04-10Add fz_new_draw_device_with_bbox functionRobin Watts
Restricts rendering to a sub rectangle of the supplied bbox.
2012-04-09Fix use of uninitialised variable.Robin Watts
In my previous commit, I forgot to initialise the variable before using it. Thanks to Bas Weelinck for spotting this.
2012-04-09Bug 692979: Fix race condition in thread debugging.Robin Watts
Bas Weelinck points out a potential problem with multiple threads starting up at the same time, running into a race condition in the thread debugging code. He suggests using an extra lock to avoid this, and indeed, it would be a simple way. I am reluctant to introduce an extra lock purely for this case though, so I've instead reused the ALLOC lock. This has the advantage of us not having to take the lock except in the 'first call with a new context' case.
2012-04-09Bug 692976: Fix spurious thread lock debug warnings on context clonesRobin Watts
When cloning, ensure the locks are done on the new context, not the old one; this makes no difference except to suppress some spurious debugging messages. Also ensure that DEBUG is predefined for Makefile based debug and memento builds. Thanks to Bas Weelinck.
2012-04-09Bug 692977: Stop harmless thread debugging messages during cmapdumpRobin Watts
If compiled with -DDEBUG, cmapdump throws a large number of warnings regarding thread locking. These are harmless and can be ignored, but are, nonetheless, not pretty. Fixed here. Thanks to Bas Weelinck for the report.
2012-04-06mucbz: use fz_malloc, not malloc.Robin Watts
2012-04-06Bug 692960: Ensure that -g flag overrides filename detectionRobin Watts
Currently the colorspace is selected on detecting -g, but may then be overridden based on the filename; the -g option should be given priority so the fix is simply to move the check for -g down a few lines. Thanks to James Cloos for spotting the problem and suggesting the fix.
2012-04-05Fix potential problems on malloc failure.Robin Watts
Don't reset the size of arrays until we have successfully resized them.
2012-04-05Bug 692946 - fix 'stray white pixels in black areas' when halftoning.Robin Watts
Depending on the operation used (< or <=) the threshold array should never have either 0 and ff in it. As we are using <, it should never have 0 in it. Fixed here.
2012-04-05Don't unlock a lock we don't own.Robin Watts
While debugging Bug 692943, I spotted a case where we can attempt to unlock the file while we don't hold the file lock due to an error being thrown while we momentarily drop that lock. Simple solution is to add a new fz_try()/fz_catch() to retake the lock in such an error circumstance.
2012-04-05Bug 692141 - Work around bug in VS2005 Team SuiteRobin Watts
Put the logf call in it's own statement to fix a stupid header file bug.
2012-03-28Add documentation for fz_link_dest and text extraction device.Robin Watts
2012-03-28Update application icons.Tor Andersson
2012-03-28Warn that the fz_link_dest struct is not finished.Tor Andersson
2012-03-28Bump version string to 1.0 release candidate 1.Tor Andersson
2012-03-28Disable link support in android app for 1.0 release.Tor Andersson
The link support still has several outstanding issues that need to be solved.
2012-03-28Fix access of recently freed memory.Tor Andersson
2012-03-28Whitespace fixes.Tor Andersson
2012-03-21Fix warning where we return nothing rather than NULL in sweepref.Tor Andersson
2012-03-21Update iOS app.Tor Andersson
2012-03-20Use a subtler background tiling pattern from subtlepatterns.comTor Andersson
The patterns can be used freely in both personal and commercial projects with no attribution required, but always appreciated. darkdenim3.png was made by Brandon Jacoby.
2012-03-20Android app: fix missing highlightsPaul Gardiner
2012-03-20Android app: delay the appearance of the page render progress dialogsPaul Gardiner
2012-03-20Android app: delay the appearance of the search progress dialogPaul Gardiner
2012-03-20Updated README file for 1.0 release.Robin Watts
2012-03-19Tweaks to CONTRIBUTORS file.Robin Watts
I had missed an umlaut, and misused a capital letter.
2012-03-19mupdfclean: eliminate mutual recursion (sweepobj/sweepref).Robin Watts
Mutual recursion was blowing the stack. This will still blow the stack, but less often.
2012-03-19Fix typo in text device where lines would group into blocks too eagerly.Tor Andersson
The default page userspace transform changed to a top-down coordinate space, and I forgot this detail when updating the text device branch. Also remove the final block sorting pass to give preference to the original PDF text order.
2012-03-19Don't create empty spans and lines in the text device.Tor Andersson
2012-03-19Bug 692669: Snap Rotate values for pages to be a multiple of 90Robin Watts
Previously we attempted to honour page rotation values, which is technically against the spec.
2012-03-19Bug 692746; avoid 'double palettes' on jpx images.Robin Watts
It seems that JPX images can be supplied in indexed format, with both a palette internal to the jpx stream, and a palette in the PDF. Googling seems to suggest that the internal palette should be ignored in this case, and the external palette applied. Fortunately, since OpenJPEG-1.5 there is a flag that can be used to tell OpenJPEG not to decode palettes. We update the code here to spot that there is an external palette, and to set this flag.
2012-03-19Add simple CONTRIBUTORS file.Robin Watts
Simple file to acknowledge major outside contributors.
2012-03-19Add simple 'inverted color' mode for mupdf viewer.Robin Watts
Use 'i' to toggle inversion of the rendered MuPDF bitmap, giving simple 'white on black' mode.
2012-03-19Bug 692934: Add Zoom to Width/Zoom to Height to MuPDF viewerRobin Watts
Simple fix to pdf app to 'fit width' and 'fit height' on W and H respectively. Thanks to eeva@marvid.fr for the patch.
2012-03-16Add -Dverbose=-1 to zlib CFLAGS.Robin Watts
This shuts up the spurious 'overflow' warnings when outputting pages.
2012-03-16Allow XPS document to be opened from unzipped _rels/.rels in mupdf app again.Tor Andersson
2012-03-16Update multi-threaded documentation in light of bug 692925.Robin Watts
State that contexts are baked into devices, and devices used with document should share the same context.
2012-03-16Add missing mudraw.1 man page.Robin Watts
2012-03-16Mudraw: Maximum width/height flags.Robin Watts
If -w and/or -h are used at the same time as -r, then treat -w and -h as maximum width/height rather than absolute width/height.
2012-03-16Bug 692805: BBox rounding issuesRobin Watts
Currently all conversions from rect to bbox are done using a single function, fz_round_rect. This causes problems, as sometimes we want 'round, allowing for slight calculation errors' and sometimes we want 'round slavishly to ensure we have a bbox that covers the rect'. We therefore split these 2 cases into 2 separate functions; fz_round_rect is kept, meaning "round outwards allowing for slight errors", and fz_bbox_covering_rect is added to mean "give us the smallest bbox that is guaranteed to cover rect". No regressions seen.
2012-03-15Fix 2 regressions in xps test files due to palette change.Robin Watts
When coping with missing transparency entries, fill with 255, not 0. Simplify code slightly so we fill completely, not just to depth.
2012-03-15Bug 692866: Do not add a final newline when cutting/pasting.Robin Watts
Previously MuPDF would add a newline at the end of every line. As requested in the bug, we here avoid adding a final newline. Unlike the suggested patch, we avoid adding one, rather than removing one.