Am Donnerstag, den 03.01.2019, 17:05 +0100 schrieb Jean-Marc
Lasgouttes:
> This is a spin-off of ticket 11284
> https://www.lyx.org/trac/ticket/11284
> 
> The patch below tries to compute inter row space in the right way.
> 
> The commit log describes the issue and possible solutions. I do not 
> think that the result is satisfying, but I am not sure what the
> right 
> algorithm is.

It strikes me that this approach produces what is called "default
leading" (what you get with "single line spacing" in word processors,
where "single" is taken literally)

Generally, it is suggested by typographers to use a line spacing of
120% (at least) [1], although it certainly depends on the font design.
Also, most document processors seem to use the factor 1.2 or 1.15 as
default line spacing for the paragraph styles.

I'd suggest to try how it looks if you use a factor of 1.15 or 1.2
either on the whole line spacing (ascent + descent + leading [2]) or
only on the line height (ascent + descent) plus the leading on top of
that. 

I know you are not a fan of prefs, but we could also consider here to
add an option to modify the line spacing (defaulted to 1.2 for
instance) in Prefs > Look & Feel > Screen Fonts, as the ideal value
will both depend on the selected font and the users' reading habits.

[1] E.g., https://practicaltypography.com/line-spacing.html

[2] I suppose you have seen that there is also
QFontMetrics::LineSpacing(), which equals height() plus leading(),
whereas height() is ascent() + descent() + 1 (the 1 is for the base
line).

> Would someone have a good documentation on the subject (The TeXbook
> uses 
> hardcoded values AFAICS) or a place where I can ask?

There are many typophile fora out there, but if you ask there, be
prepared to provoke a flame war.

Jürgen

> 
> JMarc
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to