I have been trying to vertically center text within a box in Inkscape 1.2, using the tool circled in red:
The result isn't perfect: as you can see, the text is aligned using the height of the highest character (the "A" on the left, and the "x" on the right).
The result I would like is this:
This is done using HTML/CSS. The boxes have the following CSS properties that result in the wanted vertical alignment:
.box {
display: flex;
align-items: center;
}
How can I achieve this kind of vertical alignment in Inkscape?
On a side note, I noticed that the height of the selection box is used to center the text in the last example:
I'm not shure how the height of this selection box is calculated though.