Commit d012d208 by doszhang

dos

parent 9154dd15
...@@ -439,6 +439,24 @@ function txtDraw(ctx, content, fontsize, fontweight, color) { ...@@ -439,6 +439,24 @@ function txtDraw(ctx, content, fontsize, fontweight, color) {
y = y * 2; y = y * 2;
ctx.fillText(contentArr[2], x, y); ctx.fillText(contentArr[2], x, y);
} }
else if(contentArr.length == 4)
{
x = 236;
y = 259;
x = x * 2;
y = y * 2;
fontsize = fontsize * 2;
ctx.font = fontweight + ' '+fontsize+'px zkkh';
ctx.fillStyle = color;
ctx.fillText(contentArr[0] + contentArr[1], x, y);
x = 236;
y = 302;
x = x * 2;
y = y * 2;
ctx.fillText(contentArr[2] + contentArr[3], x, y);
}
// var contentArr = content.split(''); // var contentArr = content.split('');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment