Made the temporary instance call two additional methods to eliminate the error code.  Fixed the algorithm to calculate optimal font size when at least width ratio is smaller.