2013-11-28 34 views
0

我寫了一個svg解析器。svg linejoin imlementation在不同的應用程序中有所不同

我有以下字符串SVG文件:

<polygon fill="#969696" stroke="#323232" stroke-width="0.5" stroke-miterlimit="10" points="555.583,394.805 564.085,394.805 564.02,394.817 568.896,399.655"/> 

這張圖片看起來在各種應用中的不同。可能的情況:

1)linejoin =斜角

2)linejoin =斜切(Corel繪製)

3)兩個最近點未連接(Inkscape中,Adobe Illustrator中)

第二和第三種情況看起來的樣子:

enter image description here

看起來SVG文件建議畫出相同的p作爲Corel畫畫的照片(右圖)。但它不是很漂亮。

那麼,什麼規則將允許實現左圖片?

回答

1

你似乎在你的多邊形中有一個僞造的座標。多邊形有3個頂點,但是你提供了4個頂點,而這個頂點卻讓人感到困惑。試試這個...

<polygon fill="#969696" stroke="#323232" stroke-width="0.5" stroke-miterlimit="10" points="555.583,394.805 564.085,394.805 568.896,399.655"/> 
相關問題