xt2D.stroke();
            canvasContext2D.setLineDash([]); // reset line pattern

        } else if (style == 'Solid') { // Draw solid lines for "phrases" in Japenese IME
            canvasContext2D.lineWidth = (thickness == 'Thick')? thickWidth : thinWidth;
            canvasContext2D.beginPath();
            canvasContext2D.moveTo(lineStartX, lineY);
            canvasContext2D.lineTo(lineEndX, lineY);
            canvasContext2D.stroke();
            canvasContext2D.lineWidth = 1; // reset line