Skip to content

Commit

Permalink
Merge pull request jasondu#83 from z5085911/patch-1
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
jasondu authored Feb 26, 2019
2 parents 55f9918 + 713d15e commit bfe695f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miniprogram_dist/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ const handle = {
* 渲染一段文字
*/
_drawSingleText({ x, y, fontSize, color, baseLine, textAlign = 'left', text, opacity = 1, textDecoration = 'none',
width, lineNum = 1, lineHeight = 0, bold = 'normal', italic = 'normal', fontFamily = "sans-serif"}) {
width, lineNum = 1, lineHeight = 0, fontWeight = 'normal', fontStyle = 'normal', fontFamily = "sans-serif"}) {
this.ctx.save();
this.ctx.beginPath();
this.ctx.font = italic + " " + bold + " " + this.toPx(fontSize, true) + "px " + fontFamily
this.ctx.font = fontStyle + " " + fontWeight + " " + this.toPx(fontSize, true) + "px " + fontFamily
this.ctx.setGlobalAlpha(opacity);
// this.ctx.setFontSize(this.toPx(fontSize));
this.ctx.setFillStyle(color);
Expand Down

0 comments on commit bfe695f

Please sign in to comment.