[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal]
From: |
Daniele Nicolodi |
Subject: |
Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal] |
Date: |
Thu, 6 May 2021 18:57:46 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 |
On 06/05/2021 18:29, Eli Zaretskii wrote:
>> Date: Thu, 06 May 2021 16:21:20 +0000
>> From: Gregory Heytings <gregory@heytings.org>
>> cc: jporterbugs@gmail.com, arstoffel@gmail.com, stefankangas@gmail.com,
>> emacs-devel@gnu.org
>>
>>>> \baselineskip=0pt means that the height and depth of a text line is
>>>> equal to the maximal height and depth of the characters in that line.
>>>> See the attached two screenshots that demonstrate the difference.
>>>
>>> That's what Emacs does as well, when line-spacing is nil, but Augusto
>>> says they are different.
>>
>> Unless I'm missing something, that's not what Emacs does, no. I attach
>> two screenshots of the exact same text with the exact same font, one with
>> Emacs (setq line-spacing nil) and the other with TeX (\baselineskip=0pt).
>> The effect is very different.
>
> Then your description of what TeX does is probably incomplete or
> inaccurate.
>
> on the Emacs side, I can point you to the code which implements
> line-spacing, which clearly shows that if line-spacing is nil, the
> default, we add NOTHING (a.k.a. "zero") to the height of the line,
> leaving it at its computed value of the sum of the maximum ascent and
> maximum descent of the glyphs in that line.
I didn't look at the code, but I don't think this is true: on my Emacs,
lines containing only "." or containing only "l" have exactly the same
height, as I would expect. Also, lines containing only a new line
character (thus no printable characters) still have the same height as
lines with content, as expected.
Are you sure Emacs does not consider the maximum ascent and descent of
each _font_ contained in a line and not of each _glyph_?
Cheers,
Dan
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], (continued)
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Gregory Heytings, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Eli Zaretskii, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Gregory Heytings, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Eli Zaretskii, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Gregory Heytings, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Eli Zaretskii, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Gregory Heytings, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal],
Daniele Nicolodi <=
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Eli Zaretskii, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Eli Zaretskii, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Daniele Nicolodi, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Stefan Kangas, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Stefan Kangas, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Jim Porter, 2021/05/06
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Yuri Khan, 2021/05/07
- Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Eli Zaretskii, 2021/05/07
Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal], Eli Zaretskii, 2021/05/04