move from lib folder here-add draw line by line feature -calculate linewidth based on font - initial functional
initial copied from github
minor change