Bug 688553

Summary: A poor grid fitting when stems conflict
Product: Ghostscript Reporter: leonardo <leonardo>
Component: Graphics LibraryAssignee: leonardo <leonardo>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: KozukaB-ILEmbed-1.pdf
5.bmp.zip
patch.txt

Description leonardo 2006-02-10 15:05:55 UTC
A bad gridd fitting happens if two stems have a common boundary, and that 
boundary has a lower alignment strenth, and each stem induces a different 
coordinate. Happens with KozukaB-ILEmbed.pdf when rendering wih patch7 of the 
bug 687654.
Comment 1 leonardo 2006-02-10 15:07:33 UTC
Created attachment 2030 [details]
KozukaB-ILEmbed-1.pdf

A simplified test case. Horizontal stems in 5 and 7 get different width due to
an alignment conflict in 5.
Comment 2 leonardo 2006-02-10 15:11:44 UTC
Created attachment 2031 [details]
5.bmp.zip

A visual trace diagram which demonstrates the effect. The upper horisontal arm
is controlled by hint[2] and hint[3]. The lower boundary gets a conflict, and
the upper coordinate is being choosen randomly. Must choose those, which
corresponds to the longer stem.
Comment 3 leonardo 2006-02-11 03:23:11 UTC
Created attachment 2032 [details]
patch.txt

A suggested patch is being tested.
Comment 4 leonardo 2006-02-12 16:18:52 UTC
Patch to HEAD :
http://ghostscript.com/pipermail/gs-cvs/2006-February/006347.html

This patch also fixes the bug 687654.