Bug 688553 - A poor grid fitting when stems conflict
Summary: A poor grid fitting when stems conflict
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Graphics Library (show other bugs)
Version: master
Hardware: PC Windows XP
: P4 normal
Assignee: leonardo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 15:05 UTC by leonardo
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
KozukaB-ILEmbed-1.pdf (47.95 KB, application/pdf)
2006-02-10 15:07 UTC, leonardo
Details
5.bmp.zip (11.22 KB, application/octet-stream)
2006-02-10 15:11 UTC, leonardo
Details
patch.txt (23.63 KB, patch)
2006-02-11 03:23 UTC, leonardo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.