Bug 691954

Summary: regression: Type 3 glyphs don't have a consistent baseline
Product: MuPDF Reporter: zeniko
Component: fitzAssignee: Robin Watts <robin.watts>
Status: RESOLVED FIXED    
Severity: normal CC: robin.watts
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Windows 7   
URL: http://code.google.com/p/sumatrapdf/issues/detail?id=1231
Customer: Word Size: ---
Attachments: patch.txt

Description zeniko 2011-02-10 22:50:19 UTC
See e.g. http://download.rockbox.org/daily/manual/rockbox-sansaclipplus.pdf starting at page 2: Some glyphs render with a higher/lower baseline than the others in the same word.

This regressed with the imagesmooth.c changes from http://code.google.com/p/sumatrapdf/source/detail?r=2614
Comment 1 Robin Watts 2011-02-11 12:26:38 UTC
This should come to me I think.

The proposed patch actually puts back code that I removed to ensure that rotated pages looked identical when rotated back.
Comment 2 Robin Watts 2011-02-11 16:05:29 UTC
Created attachment 7237 [details]
patch.txt

Fixed version; I was miscalculating the y sub pixel position. Previously I was calculating it as if the top left of the scaled image was going to be displayed at the given (x,y) position, not the bottom left.
Comment 3 Robin Watts 2011-02-12 16:11:34 UTC
Closing, as Tor has pushed this to the repo. Thanks.