svnno****@sourc*****
svnno****@sourc*****
2010年 6月 3日 (木) 23:50:02 JST
Revision: 1880 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1880 Author: dhrname Date: 2010-06-03 23:50:02 +0900 (Thu, 03 Jun 2010) Log Message: ----------- Modified Paths: -------------- branches/06x/061/org/w3c/dom/svg.js branches/06x/061/sie.js Modified: branches/06x/061/org/w3c/dom/svg.js =================================================================== --- branches/06x/061/org/w3c/dom/svg.js 2010-06-03 14:33:44 UTC (rev 1879) +++ branches/06x/061/org/w3c/dom/svg.js 2010-06-03 14:50:02 UTC (rev 1880) @@ -2806,9 +2806,9 @@ } var kern = "fijlt.,I:;1'-", akern = "a bcdeghknopqsuvxyz"; if (isYokogaki) { - y += fontSize * 0.25; + y += fontSize * 0.2; } else { - x += fontSize * 0.5; + x -= fontSize * 0.5; } while (ti) { if (ti.nodeType === Node.TEXT_NODE) { @@ -2817,23 +2817,23 @@ if (n < ptx.numberOfItems) { x = ptx.getItem(n).value; if (!isYokogaki) { - x += fontSize * 0.5; + x -= fontSize * 0.5; } } else if (n < tx.numberOfItems) { x = tx.getItem(n).value; if (!isYokogaki) { - x += fontSize * 0.5; + x -= fontSize * 0.5; } } if (n < pty.numberOfItems) { y = ptx.getItem(n).value; if (isYokogaki) { - y += fontSize * 0.45; + y += fontSize * 0.2; } } else if (n < ty.numberOfItems) { y = ty.getItem(n).value; if (isYokogaki) { - y += fontSize * 0.45; + y += fontSize * 0.2; } } if (n < ptdx.numberOfItems) { @@ -3048,8 +3048,8 @@ var p = tar.getStartPositionOfChar(i-j); if (!!ti._tar) { var style = ti._tar[i].style; - style.left = parseInt(p.x, 10) - tx + "px"; - style.top = parseInt(p.y, 10) - ty + "px"; + style.left = p.x - tx + "px"; + style.top = p.y - ty + "px"; style.width = "0px"; style.height = "0px"; style.marginTop = tar._isYokogaki ? -n+ "px" : "0px"; Modified: branches/06x/061/sie.js =================================================================== --- branches/06x/061/sie.js 2010-06-03 14:33:44 UTC (rev 1879) +++ branches/06x/061/sie.js 2010-06-03 14:50:02 UTC (rev 1880) @@ -57,7 +57,7 @@ //IEだったらtrueを返す var isMSIE = /*@cc_on!@*/false; //引数にtrueがあれば、例外処理のログを作動させる - stlog = new STLog(false); + stlog = new STLog(true); var ary = document.getElementsByTagName("script"); //全script要素をチェックして、type属性がimage/svg+xmlならば、中身をSVGとして処理する for (var i=0; i < ary.length; i++) {