added Font and Text classes
updated resize code