I want to determine the appropriate size of a drawing before calling Luxor.Drawing()… This results in needing to calculate the bounding box of all components within my drawing. Luxor provides the convenient method BoundingBox, which can calculate the size of a bounding box for a lot of primitives, including text. However, this function only works when a Drawing is instantiated, and hence, it defeats the point of why I need it.
I see there is also an internal method textextents, which I thought I could use. But this also requires having a Drawing instantiated before it can be called. Is there a way to calculate the appropriate size of a bounding box of text before using Luxor.Drawing() ?