Bug 691980

Summary: glyph widths are ignored when stroking text
Product: MuPDF Reporter: zeniko
Component: fitzAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Windows 7   
Customer: Word Size: ---

Description zeniko 2011-02-16 22:28:26 UTC
I've got a confidential file that contains the following ("pdfdraw -x" output):

<filltext font="Frutiger-Light" wmode="0" colorspace="DeviceGray" color="0" matrix="24 0 0 24 0 0" >
<g ucs="M" gid="46" x="42.54" y="619.7" />
</filltext>
<stroketext font="Frutiger-Light" wmode="0" colorspace="DeviceGray" color="0" matrix="24 0 0 24 0 0" >
<g ucs="M" gid="46" x="42.54" y="619.7" />
</stroketext>

Because stroking text doesn't take substitute glyph widths into account while filling text does, this results in an unexpected "shadow" on systems that don't provide the Frutiger-Light font face.
Comment 1 zeniko 2011-02-16 22:31:24 UTC
Our copy&paste fix: http://code.google.com/p/sumatrapdf/source/detail?r=2825