I'm trying to create a widget that can create text from list, but I need to allow for single or multi line text. I'm calculating text size based on a given text area.
The problem I'm having is trying to figure out how to pre-calculate the line spacing for the multi line text. I haven't dug into the actual C++ code yet to see how this was calculated in the hopes someone on here would already know. I've got a few examples to follow and just can't seem to find common factor in "mm" for line spacing. All height totals coming from using "Misc->Draw->Draw Bounding Box".
- Using RomanS2:
- 2 Line Text - Line Spacing = 1.4
- Text = 5: Total Height = 15.0801mm
- Text = 4: Total Height = 12.2456mm
- Text = 3: Total Height = 9.1909mm
- 3 Line Text - Line Spacing = 1
- Text = 4: Total Height = 15.5201mm
- Text = 3.6: Total Height = 13.9681mm
- Text = 3.5: Total Height = 13.5801mm
- 2 Line Text - Line Spacing = 1.4