@Jellby
I know you like the minimalist approach.
Line-height or no line-height?
It's a yes or no question. You let the user rely on its system fonts. And, since you do not embed a font and do not know which font the user will select, it seems better for you not to setup a
line-height. This is a fairly logical no-no answer. But the opposite seems logical too. Since I embed a font, I also setup a matching
line-height. It's just a yes-yes answer.
It seems that each choice entails the same questions.
For my choice (yes to
line-height), the main question is to know if these settings which are setup once in the body have to be considered as hard-coded ("dictated") or can be easily modified ("gently recommended"). If I judge from my -modern- e-reader, I can still change easily the font, modify the
line-height and the margins though they are set-up in the body. Nothing has been "dictated". But, I have been told that maybe this is a controversial point of view (owners of old machines can really setup nothing).
For your choice (no to
line-height), at least not in the body, let's consider what can be the consequences:
- You probably would not setup the line-height for each style in the CSS. It would be the worst choice because now no e-reader would be able to modify anything. And the user would have to dig in the CSS...
So what's left?
- Either you let the e-reader/app settings choose for the user. I am not aware that these machines or apps are smart enough so as to adapt the
line-height according to the x-height of the selected font. Is it a better choice? Furthermore, machine or apps default settings can differ since there is no standard on this field. I know Calibre defaults frequently to 1.2 which seems to go well with Georgia kind of fonts. Which one will be the right one? Do you leave it to luck?
- Or you probably consider that the user will always be able to modify the
line-height setting. I bring you back then to the DiapDealer argument expressed above: even the owners of old machines?
We make different choices but it seems that the questions arisen are not that different...
The use of @page
@page is a very handy way to control vertical margins. So, thank you for your information. I will try to modify your scripts with
important! and maybe contact you if I fail...