Fit Text -- Annotation Text Settings: How does it work?

Hello,

I am trying to do some text entity manipulation in gh. I have noticed this “Fit Text” component in the annotation text settings, with number options to choose the text’s relation to a space.

I can’t figure out how ‘fit text’ retrieves the information necessary to determine a ‘space’, since none of the other components in AS-Text are geometry based.

Thanks a ton.

If you hover over the Fit Text it will give you a tool tip. You can also go into the Rhino Annotation Style text setttings in the UI.

Hi Japhy, thanks for your response.

I made note of the tool tip, but still this is precisely my question: From where does Fit Text retrieve information about the space to fit the text?

In the following attached, there is a rectangle, and its centroid is used as the xy plane coordinate to project the text entity onto.

However, the text is very wide in comparison to the boundary of the rectangle.

This is obviously because the rectangle has not been read as an established ‘space’, and I can’t figure out how AS-Text or Annotation Style can offer that capability.

So that is my question: When, for example, Fit Text option 0 says: “Display inside when space permits,” where is Fit Text retrieving any spatial information?

Its in regard to the dimension, no? If space permits between the extension lines.

ah okay I suppose so. This kind of worked, but uniformly scaled the text down in the same wide format to match extents.

I guess I thought it would function more as a text-wrapper. Time to open up some python!!