Fix cavas mis-calculation bug

The output canvas width should be calculated with full_width not lenth
(text length).