wangyong hace 6 años
padre
commit
4013783091
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      customized/pages/made/combination/combination.js

+ 2 - 2
customized/pages/made/combination/combination.js

@@ -161,14 +161,14 @@ Page({
     const ctx = wx.createCanvasContext('comb-font');
     const ctx = wx.createCanvasContext('comb-font');
 
 
     let movex = fontTouch.x + fontTouch.width / 2;
     let movex = fontTouch.x + fontTouch.width / 2;
-    let movey = fontTouch.y + fontTouch.height / 2;
+    let movey = fontTouch.y + fontTouch.height / 5 * 4 / 2;
     ctx.translate(movex, movey);
     ctx.translate(movex, movey);
     ctx.rotate(fontTouch.angle * Math.PI / 180);
     ctx.rotate(fontTouch.angle * Math.PI / 180);
 
 
     ctx.setFontSize(fontTouch.fontSize);
     ctx.setFontSize(fontTouch.fontSize);
     ctx.setFillStyle(fontTouch.isColor);
     ctx.setFillStyle(fontTouch.isColor);
     // ctx.fillText(fontTouch.fontContent, fontTouch.x, fontTouch.y + fontTouch.height / 5 *4);
     // ctx.fillText(fontTouch.fontContent, fontTouch.x, fontTouch.y + fontTouch.height / 5 *4);
-    ctx.fillText(fontTouch.fontContent, -fontTouch.width / 2, fontTouch.height / 5 * 4 - fontTouch.height / 2);
+    ctx.fillText(fontTouch.fontContent, -fontTouch.width / 2, fontTouch.height / 5 * 2);
     ctx.draw()
     ctx.draw()
   },
   },
   getComb(that,imgSrc){
   getComb(that,imgSrc){