Bug 692346 - The attached PDF was rendered inaccurately by MuPdf for Android
Summary: The attached PDF was rendered inaccurately by MuPdf for Android
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: Other other
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-16 09:34 UTC by palmicq
Modified: 2011-07-17 05:01 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
test.pdf (279.47 KB, application/pdf)
2011-07-16 09:34 UTC, palmicq
Details
screenshot (153.52 KB, image/png)
2011-07-16 09:34 UTC, palmicq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description palmicq 2011-07-16 09:34:15 UTC
Created attachment 7675 [details]
test.pdf

Some areas of the attached PDF was lost when using MuPdf for Android, as the attached screenshot shows. However the PDF was able to be rendered perfectly by using MuPdf for Linux.

My MuPdf for Android and Linux were compiled from the latest git repo(rev. 2c4bbbfdc7413a68cad395c3c61ff8e62dceb18b) with freetype 2.4.4.
Comment 1 palmicq 2011-07-16 09:34:56 UTC
Created attachment 7676 [details]
screenshot
Comment 2 zeniko 2011-07-16 16:25:28 UTC
This is another regression caused by bug 692287: The bounding rectangles for the glyphs are too small because the fonts contains wrong (pre-devided?) metrics and because of that the new optimized clipping code clips too much.

This can be fixed by either adding some fuzz to the clipping rectangle calculations the same way that fz_execute_display_list does or by fixing the font metrics (which might not always be possible).

Our fix: http://code.google.com/p/sumatrapdf/source/detail?r=4184
Comment 3 palmicq 2011-07-17 05:01:31 UTC
(In reply to comment #2)
> This is another regression caused by bug 692287: The bounding rectangles for
> the glyphs are too small because the fonts contains wrong (pre-devided?)
> metrics and because of that the new optimized clipping code clips too much.
> 
> This can be fixed by either adding some fuzz to the clipping rectangle
> calculations the same way that fz_execute_display_list does or by fixing the
> font metrics (which might not always be possible).
> 
> Our fix: http://code.google.com/p/sumatrapdf/source/detail?r=4184

The patch worked for android. Thank you, zeniko!