to set characters w x h to fit canvas