This cannot be done through a qss file.
Line height is sewn inside the font and depends on the size of the font offset.
I don't know if I'm using the right vocabulary, but it's simply a font metric that stores the height for the entire font and font family to maintain consistency.
In this exceptional case, for use in Sigil's Code View and without changing the program code (which is unnecessary, by the way) I think the best solution would be to edit the font and, for example, add 100 points ascender and 100 points descender.
An example below using the IBM Plex Mono font as an example.
One screenshot shows the original font and the other the modified one.
As you can see, in Sigil itself there is no control over this parameter of the Code View window.
|