computing textwidth with the function drawtext