get charsize automaticly