|
From: | Clément Pit-Claudel |
Subject: | Re: Patch to vertically center line content when using line-spacing variable |
Date: | Sun, 25 Apr 2021 19:56:15 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 4/25/21 3:41 PM, Lars Ingebrigtsen wrote: > + int spacing = extra_line_spacing / 2; > + it->ascent += spacing; > + it->descent += spacing; Wouldn't it be better to use `it->descent += extra_line_spacing - spacing'? Otherwise the lsb of extra_line_spacing is ignored.
[Prev in Thread] | Current Thread | [Next in Thread] |