Calculate the width of the cell. It is the maximum length of all the lines in the cell. If cell has no lines, returns 0.