Once again,
@Erel points out that what appears to a bug is just a wrong assumption.
Somewhere behind the scenes, the code is computing a line spacing and then increases it if the text does not fit.
Of course that makes sense (after understanding the process).
For those who are following this thread, the formula below works for me. Note that since the line spacing occurs in the text engine,
all text in a given code view has the same spacing, irrespective of varying font sizes. However, you can use the [Vertical=..] tag [/Vertical]
to override the default.
Dim fs As Int = 35 'or whatever your font size is
Textengine1.SpaceBetweenLines = 1.85 * cv.MeasureText("X", xui.CreateDefaultFont(fs)).Height