[Sie-announce] SIEコード [1347] line-heightプロパティを指定して、文字のずれを修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 10月 20日 (火) 21:30:00 JST


Revision: 1347
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1347
Author:   dhrname
Date:     2009-10-20 21:30:00 +0900 (Tue, 20 Oct 2009)

Log Message:
-----------
line-heightプロパティを指定して、文字のずれを修正

Modified Paths:
--------------
    branches/05x/052/sie.js

Modified: branches/05x/052/sie.js
===================================================================
--- branches/05x/052/sie.js	2009-10-18 13:10:03 UTC (rev 1346)
+++ branches/05x/052/sie.js	2009-10-20 12:30:00 UTC (rev 1347)
@@ -458,9 +458,9 @@
       tancx = tancy = textLength / 2;
     }
     if (this.paint.writingMode.indexOf("tb") === 0) { //縦書きならば、x座標に影響を与えない
-      tancx = -fontSize * 0.04; //さらにディセンダの調整を行う
+      tancx = -fontSize * 0.25; //さらにディセンダの調整を行う
     } else {
-      tancy = -fontSize * 0.04;
+      tancy = -fontSize * 0.25;
     }
     tts.left = ptm.x - tancx;
     tts.top = ptm.y - tancy;
@@ -1411,6 +1411,7 @@
   this.writingMode = tts.writingMode;
   tts.marginTop = (this.writingMode === "tb-rl") ? "0px" : -parseFloat(tts.fontSize)+ "px";
   tts.textIndent = "0px";
+  tts.lineHeight = this.fontSize+ "px"
  } catch(e){stlog.add(e,1185);}
 }
 




Sie-announce メーリングリストの案内
Back to archive index