I have a method that reduces the size of the font contained within a formatted text area until overflow no longer occurs. However, I noticed that the method GetRequiredHeight() returns a minimum of 13.8010006, even if the point size is 1. Could this be do to the line leading? I am using Auto leading, which always seems to return a value of 9.36. If the leading is set to Auto, shouldn't it be variable based on the point size? The definition I found for the auto leading equation is as follows:
(pointSize * .2 + pointSize) = leading
If the auto leading is not "auto-adjusting", would you recommend using the above equation to adjust it on the fly? Is there something I am missing to make it auto-adjust?
Consequently, any formatted text area with a height less than 14 is being reduced to a point size of 1, and rests at the bottom of the formatted text area, even it is top-aligned. See below:
============================ \
\__ FTA (12 pt height)
/
tiny text (1 pt height) /
============================/
I appreciate any help in this matter.
Sincerely,
Matthew W. Abercrombie