I am trying to visually display the aligntop of the contents of two (or more) blocks Text. Content and Font( Size, Family, Weight) may be changed by the user of each block.
I tried to play with functions GetCellAscent, GetCellDescentand GetLineSpacing, but the results depend only on the font, and not on the actual content. And in general, I canβt find how the difference is distributed between LineSpacingboth Ascent+ Descentthe top and bottom of the block.
For example, I want to create the following output:

Any help?
source
share