TweeGo Version: 2.1.1+81d1d71
Story Format: SugarCube v2.31.1
Never mind. I found my mistake. See my own reply below.
Nope, still not right. sigh
What’s the best way to reduce the inter-line spacing of text and still be able to adjust both it and the font size while using SugarCube?
What I’d like to do is to minimize the blank space between lines of text but still allow people to adjust the size of the font to improve readability.
Below is my failing attempt to do this.
Specifying a line-height of 16px for paragraphs in Story Stylesheet does reduce the inter-line spacing to what I consider an appropriate distance. (See below.)
Unfortunately, the “fontSize” function used by @HiEv in https://qjzhvmqlzvoo5lqnrvuhmg-on.drv.tw/UInv/Sample_Code.html (that’s the URL where Google found it) changes only font-size and not line-height. As a result, when line-height has been specified in Story Stylesheet and a font is enlarged sufficiently, the characters in one line overlap the characters in adjacent lines. (It does work fine if line-height has not been specified.) I tried duplicating that functionality for line-height, but my code does nothing.
Below is a Story in Twee3 format (which I used with TweeGo) demonstrating my problem, using the fontSize and lineHeight functions that I defined. Obviously I really don’t understand what prefix I should be using to modify the line-height or even if I’m barking up the wrong tree.
Thanks for whatever help can be provided.