I am trying to set the height of a line of text in an Emacs buffer so that there is space above and below the letters. From the documentation, I conclude that a text property line-heightcan help me with this.
There is also a variable line-spacingthat I can set as (setq-default line-spacing 0.25). This type of work, except that it does not create a space before the text, only after it. I don’t like how it looks when using such modes as show-paren-mode, as it “falls” down:
Unwanted current behavior ("freeze")

Layout of desired behavior (vertically centered)

I would like to center the text.
I found that I can temporarily get the desired effect with the following code:
(add-text-properties (point-min) (point-max)
'(line-spacing 0.25 line-height 1.25))
, . ? ( .)