I’d like to lay out a paper I’m writing in Rhino. I want the ability to add images, graphics, drawings, etc., anywhere in the document with total flexibility, which Rhino provides.
Grasshopper, to my knowledge, does not output TextEntities with a fixed text block width. To handle the text blocks, ChatGPT made me a C# script in grasshopper which outputs line-heights based on a predefined text-block width. However, when calculating the total height of the text block, it’s not taking into account line-spacing. Apparently the line-spacing (leading?) of a font is not a gettable property in RhinoCommon?
How can I get the line-spacing value of a font? Are there other ways (or existing components) to do this?
CustomTextBlock.gh (12.8 KB)