Commit be5012c1 by dosZhang

dos

parent 4021bfac
...@@ -327,8 +327,8 @@ function createPoster() { ...@@ -327,8 +327,8 @@ function createPoster() {
setTimeout(function () { setTimeout(function () {
posterCtx.drawImage(posterMask, 0, 0, 640 * 2, 1238 * 2); posterCtx.drawImage(posterMask, 0, 0, 640 * 2, 1238 * 2);
drawVerticalText(posterCtx, username, '#595857',30 * 2, 82 * 2, 302 * 2, true); drawVerticalText(posterCtx, username, '#595857',30 * 2, 100 * 2, 340 * 2, true);
drawVerticalText(posterCtx, company, '#595857',30 * 2, 82 * 2, 443 * 2, true); drawVerticalText(posterCtx, company, '#595857',30 * 2, 100 * 2, 500 * 2, true);
$('#notification_area').remove(); $('#notification_area').remove();
$('.upload-page').hide(); $('.upload-page').hide();
...@@ -350,7 +350,7 @@ function drawVerticalText(ctx, text, color, fontSize, x, y, isBold) { ...@@ -350,7 +350,7 @@ function drawVerticalText(ctx, text, color, fontSize, x, y, isBold) {
ctx.fillStyle = color; // 设置字体颜色 ctx.fillStyle = color; // 设置字体颜色
ctx.textBaseline = 'middle'; // 设置基准线为中间 ctx.textBaseline = 'middle'; // 设置基准线为中间
ctx.textAlign = 'center'; // 设置文本对齐为居中 ctx.textAlign = 'center'; // 设置文本对齐为居中
ctx.lineWidth = 2; // 设置描边宽度 ctx.lineWidth = 5; // 设置描边宽度
ctx.strokeStyle = 'white'; // 设置描边颜色 ctx.strokeStyle = 'white'; // 设置描边颜色
// 计算每个字符的高度总和 // 计算每个字符的高度总和
......
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