There does not seem to be any way to control the spacing of Inline elements within a TextBlock. This may be due to lack of documentation, but I did not find any likely properties while reviewing the source of Run, Inline and TextElement.
Additionally, the subscript shares a common baseline with the rest of the text.
To Reproduce
I created a new project with "dotnet new avalonia.app".
I updated the version of Avalonia to 11.0.7 as my templates created 11.0.6.
This is my MainWindow.axaml:
There ought to be some means of controlling the spacing between inline elements.
Screenshots
This is what is shown as the app window. The first line has spacing, which is good. However, the second line also has the same spacing, which is undesirable. I can find no means of controlling this.
This is what I expected for the second line (ignore any font differences). Note the baseline of the subscript is below the baseline of the rest of the text.
Describe the bug
There does not seem to be any way to control the spacing of Inline elements within a TextBlock. This may be due to lack of documentation, but I did not find any likely properties while reviewing the source of
Run
,Inline
andTextElement
.Additionally, the subscript shares a common baseline with the rest of the text.
To Reproduce
I created a new project with "dotnet new avalonia.app". I updated the version of Avalonia to 11.0.7 as my templates created 11.0.6. This is my MainWindow.axaml:
Expected behavior
There ought to be some means of controlling the spacing between inline elements.
Screenshots
This is what is shown as the app window. The first line has spacing, which is good. However, the second line also has the same spacing, which is undesirable. I can find no means of controlling this.![Window-Actual](https://github.com/AvaloniaUI/Avalonia/assets/62225294/46456a98-9a9d-4241-b924-e69218048b39)
This is what I expected for the second line (ignore any font differences). Note the baseline of the subscript is below the baseline of the rest of the text.![H20-Expected](https://github.com/AvaloniaUI/Avalonia/assets/62225294/9adc2b29-b1d8-4b80-a5cf-150c664f9f76)
Environment
Additional context
Here is the version information for my dotnet: