2013-03-09 52 views
0

我有下面的代碼,我一直在得到真正大膽的字體,但我並沒有要求這樣做。kineticjs字體太厚

var myText = new Kinetic.Text({ 
      x: RoundOneX +.5, 
      y: RoundOneY+2.5, 
      text: thisname, 
      fontSize: "8pt", 
      fontFamily: 'r', 
      width: 70, 
      stroke: 'black', 
      align: 'center' 
     }); 

回答

0

您的寬度:70 方式太厚,微小的字體:「8PT」

您的代碼將繪製文本的輪廓(內填將爲空)。

試試這個配置,並從那裏調整:

var myText = new Kinetic.Text({ 
     x: RoundOneX +.5, 
     y: RoundOneY+2.5, 
     text: thisname, 
     fontSize: "12pt", 
     fontFamily: 'arial', 
     fill: 'black', 
     align: 'center' 
    });