update the font-size during resizing the free hand text box to make the text always full fill the whole box

Hi, Logan
thanks for your help, this works but only when you resize the rect of text. and the problems are:

  1. initial fontsize is too small when add a new one.
  2. the fontsize will always be reset to 0pt when trying modify the text string.

so is there a way which can give an initial fontsize when add and still keep the fontsize fill the whole rect when resize the rect after added. and also to keep the current fontsize when edit text content.

thanks
Aaron