Why is Text Entity Bounding Box so wrong?

When I need to get the bounding box or rect of a text entity in GH, I find it is completely wrong. why even offer the .GetBoundingBox method on TextEntity objects if it cannot return an accurate bounding box? It is also weird that the .GetBoundingBox method claims to compute a physically accurate bounding box if I pass true in, when it clearly does not do that.

I have to use a C# component to first get the outline curves via the TextEntity.CreateCurves method, but this asks for a DimensionStyle which is confusing and has a really useless description on the DimensionStyle class page: “Can also be considered an annotation style since it is used for more than just dimensions”… I think it would be better if the CreateCurves method had all those arguments as optional.

But in the first place I think it would be better if the TextEntity.GetBoundingBox method worked correctly.

text_entity_bounding_box_issue.gh (17.5 KB)

If you want the right size, assign an annotation style to the text entity.

Here’s the same thing without annotation style assigned. The baked text entity ends up having my current annotation style assigned to it which is messing with the size in Grasshopper.

Thanks Martin, that seems to be the answer.