Commit a1fff412 authored by 李俊赕's avatar 李俊赕

文字部分未显示

parent 3f1013b2
......@@ -368,9 +368,9 @@
if(txt.indexOf('时间')>=0){
canvas.fillText(txt, 10, canvasHeight - txtHeight * h++);
}else{
if(txt.length>21){
canvas.fillText(txt.substr(18,21), 10, canvasHeight - txtHeight * h++);
canvas.fillText(txt.substr(0,21), 10, canvasHeight - txtHeight * h++);
if(txt.length>22){
canvas.fillText(txt.substr(18,22), 10, canvasHeight - txtHeight * h++);
canvas.fillText(txt.substr(0,22), 10, canvasHeight - txtHeight * h++);
}else{
canvas.fillText(txt, 10, canvasHeight - txtHeight * h++);
}
......
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 to comment