1. In a computing system for handling freehand drawn lines and shapes, a method for improving the appearance of the hand drawn lines and shapes comprising: comparing a source line segment of a source line against a straight line and detecting a deviation value indicating deviation between the source line segment and the straight line; straightening the source line segment to a straight line if the deviation value is below a predetermined threshold value; evaluating the source line segment as an angle segment, when the deviation value is below a predetermined threshold value, by detecting whether the source line segment can be defined as an angle segment with two straight line segments and defining the line segment as an angle segment having two straight line segments intersecting at an angle if the source line segment can be defined with two straight line segments; dividing the source line segment into new segments if the deviation value is not below the predetermined threshold value and the line segment can not be defined as an angle segment; and repeating the acts of comparing, straightening, evaluating and dividing on the new segments until all segments of the source line have been straightened.